Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: (Perl 5.10.1 or before)What does $_ refer to here?by ForgotPasswordAgain (Priest) |
on Jun 13, 2019 at 13:41 UTC ( [id://11101312]=note: print w/replies, xml ) | Need Help?? |
Unsolicited advice, but since you're "strictifying" the script, I'd recommend changing open IN, $filename to open my $in, '<', $filename (and if you don't use autodie, then also add or die("Couldn't open $filename: $!")). A global FILEHANDLE led to one of the nastiest bugs I've ever debugged. Also the code assumes $1, $2, and $3 were matched, so you might want to add a check on whether they're defined.
In Section
Seekers of Perl Wisdom
|
|