I'm using PDF::Create in a CGI environment. It interfaces via either a file name or file handle so, by using STDOUT, I can just stream the PDF file back to the user. However, users of Internet Explorer 4.01 and 5.5 are unable to receive files in this fashion due to a confusion between file extensions and MIME types (another stupid Microsoft trick). Anyway, I want to email the PDF as an attachment to these users. But to do so using Mail::Send and MIME::Parse requires having the entire PDF file in a variable. It's a short PDF, and I would prefer not having to write it to a file and read it back again just to get it into a variable, due to the requisite file locking and/or cleanup I'd have to do. Is there a simple way to associate a file handle with a string, so that any writes to the file handle (e.g. through PDF::Create) will just concatenate the written data to the string?