On Thu, 13 Jul 2017 00:50:42 +0530
perl kamal <kamal.p...@gmail.com> wrote:

> open (my $FH, $file) or die "could not open file\n";

A quick note: output the file name and error message to have a better
idea of what went wrong.

    open (my $FH, $file) or die "could not open file $file: $!\n";


-- 
Don't stop where the ink does.

        Shawn H Corey

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to