Using this:
open my $FH, '<', $file or die "Can't open '$file' for reading: $!\n";
instead of this:
open FH, $file;
The real revelation was lexical filehandles: I'd been happily localising typeglobs for years, but I somehow managed to miss lexical filehandles when 5.6.0 came out, and didn't realise they existed until seeing them in a node on here about six months ago...
In reply to Re: PerlMonks has changed me
by polypompholyx
in thread PerlMonks has changed me
by kwaping
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |