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 je...@krynicky.cz 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

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/

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 tomdean...@gmail.com 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

Re: How to get the file handle of a scalar

2012-07-30 Thread Jenda Krynicky
From: Shlomi Fish shlo...@shlomifish.org Hi Thomas, On Mon, 30 Jul 2012 20:23:58 +0800 Thomas Dean tomdean...@gmail.com 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