monkfan has asked for the wisdom of the Perl Monks concerning the following question:
I would like to convert that string as if it is stored inside a file, and bypassing the file creation step.my $string = 'foo bar qux woo etc etc';
Such that I can straight away do things like:my $filehandle = do_sth_to_convert($string);
while (<$file_handle>) { print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting a String to a FileHandle
by japhy (Canon) on May 22, 2006 at 03:00 UTC | |
|
Re: Converting a String to a FileHandle
by GrandFather (Saint) on May 22, 2006 at 02:48 UTC | |
|
Re: Converting a String to a FileHandle
by bobf (Monsignor) on May 22, 2006 at 03:16 UTC |