in reply to simple Perl script template
You should check the state of file opening:
Unless Modern::Perl does that. I've never used Modern::Perl.open my $fh, '>', $fname or die "Cannot open $fname - $!\n";
Update: 'warn' changed to 'die' and '\n' were appended.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: simple Perl script template
by Dumu (Monk) on Apr 09, 2015 at 12:55 UTC | |
Re^2: simple Perl script template
by marinersk (Priest) on Apr 09, 2015 at 12:14 UTC | |
by Dumu (Monk) on Apr 09, 2015 at 12:49 UTC | |
by pme (Monsignor) on Apr 09, 2015 at 13:35 UTC | |
by marinersk (Priest) on Apr 09, 2015 at 16:11 UTC |