Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Email::Simple doing something i'm not expecting??

by benizi (Hermit)
on Sep 04, 2004 at 19:15 UTC ( [id://388524]=note: print w/replies, xml ) Need Help??


in reply to Email::Simple doing something i'm not expecting??

The problem is with HTML::Stripper. It's designed to accept multiple chunks of HTML to produce its final output. (The only hint in the docs to this effect is [emphasis mine]: "Now that we have our stripper object (wow!), we use it on one or more chunks of HTML using the strip_html() method").

If you move the creation of the HTML::Stripper object into your $msg loop, it should work as intended.

  • Comment on Re: Email::Simple doing something i'm not expecting??

Replies are listed 'Best First'.
Re^2: Email::Simple doing something i'm not expecting??
by eLore (Hermit) on Sep 07, 2004 at 16:34 UTC
    benizi was correct. I moved the stripper initialization inside the message loop and it now works as i had expected initially.

    Many thanks!!

    -eLore

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found