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.
In reply to Re: simple Perl script template
by pme
in thread simple Perl script template
by Dumu
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |