Mathew Snyder wrote:
>
I can't seem to get this working.  Every time I try to run it segfaults on me.
I've removed it from my code and reverted to the stage I was at before I added
it and my script worked exactly as it did before I put it in.  I've installed it
via both cpan and yum.  I've tried running it on a SuSE box and two Fedora Core
5 boxes.  I get the same result both times.

Does anyone know if this is a buggy module?  Version is 1.883-1

Mathew Snyder wrote:
>
> my $data     = $agent->content();
> my @emails = Email::Address->parse($data);
>
> foreach my $email (@emails){
>         print $email;
> };

Hmm. It shouldn't seg fault - it's all written in Perl. There is a version 1.884
but I doubt if that will fix anything. All I can suggest is to try to reduce the
problem. Is it faulting when it parses the HTML or when it prints the results?
Can you simplify the data to a point where the fault goes away?

As a last resort there is a module Regexp::Common::Email::Address which you can
try instead, but what you've got should work fine. Oh, and what Perl version are
you running?

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to