Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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 imbibing at the Monastery: (3)
As of 2015-10-09 03:12 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls