The Diamond Operator
- Like <STDIN>
while ( <> ) { print "The line is $_" }
- ...but does magic things with the arguments
$ ./my_app foo.txt bar.txt baz.txt
| CPU: Perl, Fall 2005 | Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables | #11 |
while ( <> ) { print "The line is $_" }
$ ./my_app foo.txt bar.txt baz.txt
| Copyright © 2005 Ian Langworth |