Oh, and if you're going to take my *deliberately* bad example to task
...
--- Eric Wilhelm <[EMAIL PROTECTED]> wrote:
> > sub slurp {
> > open FH, "< $file" or die $!;
> > do { $/ = undef; <FH> }
> > }
> b. 2-arg form of open -- banned
Not if you want your code to run under 5.005. Some people still have
that issue.
And you missed that $/ was not localized, a far more serious error :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/