NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
That's a fun bug! (Score:1)
Re:That's a fun bug! (Score:2)
Yup. That's it. In my case, I was reading in a huge file so I didn't want to slurp it all in at once. I went for the following fix:
Re:That's a fun bug! (Score:1)
Re: (Score:1)
Hehe. I did spot it without running the code – after I stepped out of the box and started thinking about what things it does other than its primary goal. It took about three minutes of staring.
I can’t think of a solution that is compact, non-obfuscatory, and avoids redundancy (ie setting
$/twice) all at once. The best I can do isRe: (Score:2)
this should be a property of the filehandle, not a global variable.
Perl 6, baby, Perl 6.