To be honest, I would still use a temp file. And then, because this is perl, you could change it from an IO::File to an IO::Scalar later and compare if you're really saving any clock time. I'm betting it's not going to be significant on most modern hardware and OS. HD speeds continue to improve, as do the caching algorithms of the OS.
This smells of premature optimisation to me.
In reply to Re^3: Redirect data and Filehandle manipulation (STDIN x Disk IO)
by Tanktalus
in thread Redirect data and Filehandle manipulation (STDIN x Disk IO)
by mda2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |