develooper Front page | perl.perl6.users | Postings from July 2019

while(<>){...} analog?

Thread Next
Joseph Brenner
July 28, 2019 23:21
while(<>){...} analog?
Message ID:
I was just wondering if there's some direct analog in perl6 to the
perl5 construct:

  while(<>){ ... }

If I'm planning on passing a filename on the command-line, I can just
get it out of $*ARGFILES easily enough, but what if I also wanted it
to work on lines passed in via standard input?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About