Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Maybe a partial solution: if your stream is actually just a scalar (e.g. in variable $body), then you may treat is as a file handle via IO::Scalar. If the method you'd like to call accepts a filehandle, this does the trick:
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. HTH! -- In reply to Re: Dealing with "Detachments"
by joe++
|
|