in reply to Dealing with "Detachments"
I used this succesfully on XML::Simple, which can be instantiated with either a filename or a filehandle. If your module really only groks filenames, then you're out of luck and may need to revert to a tempfile of some kind.use strict; use IO::Scalar; my $body = &get_body(); # whatever... my $handle = new IO::Scalar($body); # now call the method that expects a file handle
HTH!
--
Cheers, Joe
|
|---|