in reply to Portable in-memory files


The IO::Scalar module can be used create a filehandle that acts as a scalar. It is fully portable.

It is a non-core module, which doesn't meet your last requirement but there are other ways around that.

--
John.