Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
while (<STDIN>) { push @submission, $_; } foreach $line (@submission) { push $line, @header; if ($line =~ /^$/) { last; } } foreach(@header) { if ($_ =~ /from/i) { ($from, $email) = split(/:/, $_); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Email STDIN
by projekt21 (Friar) on Oct 09, 2001 at 14:30 UTC | |
|
Re: Email STDIN
by tachyon (Chancellor) on Oct 09, 2001 at 15:34 UTC | |
|
Re: Email STDIN
by busunsl (Vicar) on Oct 09, 2001 at 14:36 UTC | |
|
Re: Email STDIN
by the_slycer (Chaplain) on Oct 09, 2001 at 18:29 UTC | |
|
Re: Email STDIN
by strredwolf (Chaplain) on Oct 12, 2001 at 11:07 UTC |