On Thu, 13 Jul 2017 00:50:42 +0530
perl kamal <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to