Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: in memory files in 5.6.1

by hanenkamp (Pilgrim)
on Oct 25, 2003 at 20:33 UTC ( #302104=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: in memory files in 5.6.1
in thread in memory files in 5.6.1

Not true, this should work:

use IO::Scalar; my $fh = IO::Scalar->new; print $fh "foo\n"; # Rather than $fh->print ... # or, if you prefer select $fh; print "bar\n";

This works through the magic of a tied file handle. See perltie for details on tying a file handle.


Comment on Re: Re: Re: in memory files in 5.6.1
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://302104]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-12-26 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls