Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Using scalars as a file data?

by runrig (Abbot)
on Jul 31, 2013 at 00:20 UTC ( #1047145=note: print w/ replies, xml ) Need Help??

in reply to Using scalars as a file data?

While opening a reference to a scalar works for things that take a filehandle, there's not a lot you can do when something wants an actual filename, except to create a file and write the contents of the scalar to it.

In the case of attachments for emails though, you might be better off using an alternative library, like MIME::Entity or MIME::Lite, which have more flexible attachment methods.

Comment on Re: Using scalars as a file data?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047145]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2015-11-29 04:00 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls