- or download this
open(Input, '+<…') || die "No such file found!";
- or download this
open my $input, '+<', 'file...';
- or download this
perl script.pl > output.txt
- or download this
open STDOUT, '>', 'output.txt' or die $!
- or download this
perl first.pl | perl second.pl
- or download this
while (my $line = <STDIN>) { ... }