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?
In reply to Portable in-memory files by crenz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |