Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Mail::Internet question

by Abigail-II (Bishop)
on Oct 08, 2003 at 12:16 UTC ( #297551=note: print w/replies, xml ) Need Help??


in reply to Mail::Internet question

From the Mail::Internet manual page:
METHODS body ( [ BODY ] ) Returns the body of the message. This is a reference to an array. Each entry in the array represents a single line in the message.
So you will have to derefence the body first, like this:
@content = @{$message -> body};

It would have been much more convenient if the body method was context aware, and returned a list in list context. But c'est la vie. You could ask the author of the package to add this feature.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://297551]
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: (1)
As of 2022-01-25 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?