On Tue, Nov 08, 2011 at 12:01:52PM -0500, Brandon McCaig wrote: > You should generally use lexical file handles and the 3-argument > version of open. You should also be checking for and handling the > potential failure of open (e.g., with or die) (perhaps you're > using autodie instead, but it isn't shown so there's no way to > know).
Sorry, apparently my mail editing fu is weak. ^^ I had an example
here that I apparently forgot to restore.
open my $log_fh, '>>', $log_filename or
die "open '$log_filename': $!";
Fixed. ;)
Regards,
--
Brandon McCaig <[email protected]> <[email protected]>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'
signature.asc
Description: Digital signature
