- or download this
$ perl script.pl data.dat
- or download this
$ cat data.dat | perl script.pl
- or download this
while (<>) {
... # code for each line
}
- or download this
unshift(@ARGV, '-') unless @ARGV;
while ($ARGV = shift) {
...
... # code for each line
}
}