open my $fh, '<', "/path/to/filename.txt"
or die "Can't open the file $fh for reading: $!";
$fh is the filehandle object (or whatever the proper term is). Perhaps better as:
my $filename = '/path/to/filename.txt';
open my $fh, '<', $filename or die "Opening '$filename' for reading: $!";
In reply to Re^2: Cannot print line
by AnomalousMonk
in thread Cannot print line
by nimpoura
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |