- or download this
my $file = $ARGV[0];
...
while (<IN>) {
print($_); # do stuff
}
- or download this
my $file = @ARGV ? $ARGV[0] : '-';
...
while (<IN>) {
print($_); # do stuff
}
- or download this
use FileHandle;
...
while (<$fh_in>) {
print($_); # do stuff
}