[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-xml
Subject: Re: XML::Parser, UTF-8 infinite loop bug?
From: Aaron Crane <perl () aaroncrane ! co ! uk>
Date: 2004-06-14 17:53:29
Message-ID: 20040614175329.GG14249 () aaroncrane ! co ! uk
[Download RAW message or body]
James Miller writes:
> Grant McLean <grant@mclean.net.nz> wrote:
> > open(my $fh, "<", $filename)) or die("can't open $filename: $!");
>
> As of Perl 5.8, passing an undef "my" variable into open() does, in fact,
> work (http://www.perldoc.com/perl5.8.0/pod/func/open.html). It does not
> work on Perl 5.6 (http://www.perldoc.com/perl5.6/pod/func/open.html)
Actually, it does work in 5.6; search for 'autovivified' in perldelta. It's
somewhat unfortunate that perlfunc doesn't document this very handy feature
until 5.8.
--
Aaron Crane
_______________________________________________
Perl-XML mailing list
Perl-XML@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic