On Mon, Jul 30, 2012 at 6:32 PM, Jenda Krynicky 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.
From: Shlomi Fish
> Hi Thomas,
>
> On Mon, 30 Jul 2012 20:23:58 +0800
> Thomas Dean wrote:
>
> > Hi there,
> >
> > I'm wondering how to get the file handle or a reference of a file
> > object of a scalar in which stores a string.
> >
>
> Starting from relatively recent versions of Perl, you
Hi Thomas,
On Mon, 30 Jul 2012 20:23:58 +0800
Thomas Dean wrote:
> Hi there,
>
> I'm wondering how to get the file handle or a reference of a file
> object of a scalar in which stores a string.
>
Starting from relatively recent versions of Perl, you can simply do:
use autodie;
my $buffer =
Hi there,
I'm wondering how to get the file handle or a reference of a file
object of a scalar in which stores a string.
Thanks,
Thomas
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/