Your skill will accomplish what the force of many cannot |
|
PerlMonks |
(dkubb) Re: (2) Evaluation of Simple Pop3 Clientby dkubb (Deacon) |
on Mar 25, 2001 at 01:52 UTC ( [id://66909]=note: print w/replies, xml ) | Need Help?? |
Had your question been regarding "how do I parse HTML using a regular expression?", you would have been bombarded with a chorus of people saying "don't do that, use a module like HTML::Parser or it's derivatives". And in most cases they would be right. =) Why bother to reinvent parsing routines that someone else has done, and thousands of people use, and test, every day? I'm going to give you the same advice for your project, don't parse an email message using a regex. Instead, use some of MailTools's CPAN modules to parse the message headers and body for you. Here's your example re-worked to use the Mail::Internet module:
In Section
Seekers of Perl Wisdom
|
|