Re: How to get the file handle of a scalar

2012-07-31 Thread Andy Bach
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.

Re: How to get the file handle of a scalar

2012-07-30 Thread Jenda Krynicky
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

Re: How to get the file handle of a scalar

2012-07-30 Thread 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 can simply do: use autodie; my $buffer =

How to get the file handle of a scalar

2012-07-30 Thread Thomas Dean
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/