cajun has asked for the wisdom of the Perl Monks concerning the following question:
I've located the module Email::Find and installed it. In the POD there is an example given that appears to do what I'm looking for. Problem is the example is object oriented and I've not had any experience with OO thus far. I'm sure this is incredibly simple to those who studied and know OO, but I have not. I've spent a good amount of time searching for code using this module, but haven't found any.
The following is the basic example from the POD (I added my mailbox file):
#!/usr/bin/perl -w use Email::Find; $mailbox='./mail/addresses'; my $finder = Email::Find->new(sub { my($email, $orig_email) = @_; print "Found "..$email->format."\n"; return $orig_email; }); $finder->find(\$text);
I need a little bit of a kickstart to get to understanding how to use the module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Email::Find question
by tachyon (Chancellor) on Apr 05, 2002 at 06:16 UTC | |
|
Re: Email::Find question
by mla (Beadle) on Apr 05, 2002 at 05:43 UTC | |
|
Fun with OO -- Re: Email::Find question
by joealba (Hermit) on Apr 05, 2002 at 15:24 UTC |