Re: Scalar as FileHandle

2007-06-07 Thread Paul Lalli
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 th

Re: Scalar as FileHandle

2007-06-07 Thread Chas Owens
On 6/7/07, Paul Lalli <[EMAIL PROTECTED]> 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 f

Re: Scalar as FileHandle

2007-06-07 Thread Paul Lalli
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. #!/usr/bin/perl use strict; use warnings; my

Re: Scalar as FileHandle

2007-06-07 Thread Chas Owens
On 6/7/07, Brown, Rodrick <[EMAIL PROTECTED]> wrote: Is there a simple method to read data from scalar like a file handle? snip http://search.cpan.org/~gaas/IO-String-1.08/String.pm -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.per

Scalar as FileHandle

2007-06-07 Thread Brown, Rodrick
Is there a simple method to read data from scalar like a file handle? --- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named