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

Re: trouble with MIME::Tools

by McD (Chaplain)
on Oct 24, 2005 at 11:53 UTC ( [id://502436]=note: print w/replies, xml ) Need Help??


in reply to trouble with MIME::Tools

I've found it useful for myself in the past to break down the steps involved, rather than trying for that one great swoopy assignment right off the bat.

my $headers = $entity->head(); die "No headers in entity!" unless defined $headers; my $subject = $headers->get('Subject'); $subject ||= '(empty)'; print "Subject is: $subject\n";
Once you get it working, you can try collapsing it back to something briefer, or not, depending on clarity and your specific needs. But for starters, I would try breaking down the steps and insuring each one works along the way.

Peace,
-McD

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found