in reply to parsing emails w/ MAIL::ADDRESS

You haven't told us what it's failing to do. So I can only guess given what you've shown us.

Here are some thoughts:

Maybe you could tell us what the problem is that you're actually trying to track down... error messages, unexpected results, etc. Otherwise, start trying to cross things off the list above.


Dave

Replies are listed 'Best First'.
Re: Re: parsing emails w/ MAIL::ADDRESS
by mkahn (Beadle) on Feb 04, 2004 at 15:13 UTC
    Ah, quite right.

    There's nothing wrong with the script, except that it does not parse email addresses, which is why I only included the mail::address portion of it. It parses html tags.

    try it for yourself at http://www.markkahn.com/cgi-bin/mp3.pl

    with your favorite url in the submit box.

    My vision is that I am returned a list of addys of the page, but I get a de-markup-tagged page dump as output.

    Thanks for the responses.

      FYI For anoyone interested in this thread: I wrote to the module manager, and he described mail::address as 'a fragile piece of software, not designed to strip email from source code.' He suggested using a regular expression.