On Mon, Jul 30, 2012 at 6:32 PM, Jenda Krynicky <[email protected]> wrote:
>
> Just to prevent confusion ... the "use autodie" is not needed to be
> able to open a "filehandle into a string". ...
> It forces some Perl builtins to throw an exception instead of
> reporting success or failure using their return values.

I understand what you're saying, I thought it was to cover the fact
that open return value wasn't being checked?  Same as if I'd rewritten
that to be
open my $fh_to_string, '<', \$buffer
    or die "can't unbuffer string: $!";

hmm, but can that open ever fail?

-- 

a

Andy Bach,
[email protected]
608 658-1890 cell
608 261-5738 wk

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to