On Jun 7, 11:05 am, [EMAIL PROTECTED] (Paul Lalli) wrote:
> On Jun 7, 10:53 am, [EMAIL PROTECTED] (Rodrick Brown) wrote:
>
> > Is there a simple method to read data from scalar like a file handle?
>
> Yes.  Simpler than you might imagine.  Just pass a reference to your
> scalar to open(), rather than the name of a file.

> open my $fh, '<', \$data

I should point out this only works on Perl versions 5.8 and above.  if
you have 5.6 or earlier, consider upgrading. . .

Paul Lalli



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


Reply via email to