On May 22, 2006, at 4:44, Wijaya Edward wrote:

Is there a way to do it? Module for it? Suppose I have this large string.


my $string = 'foo bar
              qux woo
              etc etc';



I would like to convert that string as if it is stored inside a file, and bypassing the file creation step.
For example,

my $filehandle = do_sth_to_convert($string);

Yes, since 5.8.0 that's built-in:

  open my $filehandle, '<', \$string;

-- fxn



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to