Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Basically I want to list all ids from @data2 that aren't in @data. Here's my attempt.
foreach (@data) { ($id,$var2,$var3,$var4,$var5) = split( /,/, $_); $id = grep { m/$id$/ } @data2; print "This $id was not found.\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: grepping
by indigo (Scribe) on Mar 25, 2001 at 01:33 UTC | |
Re: grepping
by dws (Chancellor) on Mar 25, 2001 at 01:02 UTC | |
by MeowChow (Vicar) on Mar 25, 2001 at 01:10 UTC | |
by Anonymous Monk on Mar 25, 2001 at 11:15 UTC | |
by dws (Chancellor) on Mar 25, 2001 at 11:21 UTC | |
by Anonymous Monk on Mar 25, 2001 at 11:31 UTC | |
by dws (Chancellor) on Mar 25, 2001 at 11:37 UTC | |
| |
Re: grepping
by MeowChow (Vicar) on Mar 25, 2001 at 13:52 UTC | |
Re: grepping
by chipmunk (Parson) on Mar 27, 2001 at 22:30 UTC |
Back to
Seekers of Perl Wisdom