crenz has asked for the wisdom of the Perl Monks concerning the following question:
A module I'm using expects me to pass it a file handle it then prints to. I want to redirect the printed content to a scalar instead of a file on disk.
Perl 5.8. has open($fh, '>', \$dest), but I am looking for something that will ideally work back to 5.005something, on Unix and Windows, without requiring non-core modules. Is there a way to do it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Portable in-memory files
by nothingmuch (Priest) on Apr 06, 2003 at 20:54 UTC | |
by crenz (Priest) on Apr 06, 2003 at 21:32 UTC | |
|
Re: Portable in-memory files
by jmcnamara (Monsignor) on Apr 06, 2003 at 21:17 UTC | |
|
Re: Portable in-memory files
by BrowserUk (Patriarch) on Apr 06, 2003 at 23:44 UTC | |
|
Re: Portable in-memory files
by crenz (Priest) on Apr 06, 2003 at 22:12 UTC | |
by bart (Canon) on Apr 07, 2003 at 00:17 UTC | |
by crenz (Priest) on Apr 07, 2003 at 10:19 UTC | |
by Aristotle (Chancellor) on Apr 07, 2003 at 15:42 UTC |