in reply to Re: Reading two text files parallelly...
in thread Reading two text files parallelly...

...and including $! in the error message is the postmodern way ;)
open my $f1, '<', $file1 or die "Cannot open file '$file1': $!";

Replies are listed 'Best First'.
Re^3: Reading two text files parallelly...
by Jim (Curate) on Nov 09, 2010 at 04:05 UTC

    And the postpostmodern way…

    use English qw( -no_match_vars ); open my $f1, '<', $file1 or die "Cannot open file '$file1': $OS_ERROR\n";
      use autodie qw[ open ]; open my $F1, '<', $file1;
Re^3: Reading two text files parallelly...
by 7stud (Deacon) on Nov 09, 2010 at 02:34 UTC
    Whoops!