Yes!
This is exactly what I needed:
"making the assumption that the dump method will only write to a file handle and would like to avoid a temp file just use an IO::String object where you have *OUT.
I am sorry I didn't make myself clear from the beginning.
Thanks!