mirage4d has asked for the wisdom of the Perl Monks concerning the following question:
Can anyone suggest a more efficient way? Thanks.@from = grep(/^From:/o, @header); $curFrom = $from[0]; @subject = grep(/^Subject:/o, @header); $curSubject = $subject[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better way to get the results of grep()?
by ikegami (Patriarch) on Dec 09, 2009 at 18:10 UTC | |
|
Re: Better way to get the results of grep()?
by moritz (Cardinal) on Dec 09, 2009 at 17:34 UTC | |
|
Re: Better way to get the results of grep()?
by afoken (Chancellor) on Dec 09, 2009 at 19:25 UTC | |
by eye (Chaplain) on Dec 09, 2009 at 19:50 UTC | |
by zwon (Abbot) on Dec 09, 2009 at 20:50 UTC | |
|
Re: Better way to get the results of grep()?
by eye (Chaplain) on Dec 09, 2009 at 19:44 UTC | |
|
Re: Better way to get the results of grep()?
by mirage4d (Novice) on Dec 09, 2009 at 19:43 UTC |