Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-30 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls