in reply to Re: Cannot print line
in thread Cannot print line

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: $!";

Replies are listed 'Best First'.
Re^3: Cannot print line
by stevieb (Canon) on Nov 28, 2014 at 16:31 UTC

    D'oh! Of course! Thanks for catching that :) My original comment has been corrected.