mjcampb has asked for the wisdom of the Perl Monks concerning the following question:
Typically to advance the array an element or two I would use:$msg = Mail::Internet->new([ <> ]); $from = $msg->get('From'); $msg->combine('To'); $to = $msg->get('To'); $subject = $msg->get('Subject'); $body = $msg->body(); foreach (@$body){ if (($_ =~ $x) or ($_ =~ $y)){ chop $_; $array[9][1] = $_; } }
But this doesn't seem to work.$i++; $array[9][1] = $body[$i];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: email parsing
by mfriedman (Monk) on Jun 04, 2002 at 16:05 UTC |