Hi,
I'm writing a test script that should simulate uploading a file to a CGI form. Is there a way to create a filehandle that behaves like CGI filehandles, returning a string in scalar context and a filehandle in filehandle context? CGI.pm itself does it using a private class Fh, which I don't want to steal.
Thanks!