Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Re: Saving certain email attachements using MIME::Tools

by blahblahblah (Priest)
on Sep 03, 2002 at 04:28 UTC ( #194683=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Saving certain email attachements using MIME::Tools
in thread Saving certain email attachements using MIME::Tools

You're setting $attachment to the return value of the print() method. The perldoc for MIME:Body doesn't say anything about print() returning anything. There are other methods that look like they'll do what you want, like as_string() and as_lines().

MIME::Tools has some of the better documentation I've seen for modules, with lots of examples. You should run "perldoc MIME::Body" or look at these pages on perldoc.com:
http://www.perldoc.com/cpan/MIME-tools.html
http://www.perldoc.com/cpan/MIME/Body.html

  • Comment on Re: Re: Re: Saving certain email attachements using MIME::Tools

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194683]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-12-08 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.