Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Help in using arraysby johngg (Canon) |
on Mar 14, 2007 at 09:48 UTC ( [id://604761]=note: print w/replies, xml ) | Need Help?? |
You can set up a regular expression that will match any of the elements of @all then read each line and split, passing the original line and each column out of a map to grep the second columns that match, finally maping out the original line and printing it.
The output is
I hope this is of use. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|