Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
That does not seem to me to be good - can anybody show me how to do it?foreach my $line(@array) { foreach (@array1) { if ($username eq $user){ print "$line\n"; } } }
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: iterating over two arrays
by Mugatu (Monk) on Mar 04, 2005 at 17:24 UTC | |
by Anonymous Monk on Mar 04, 2005 at 23:05 UTC | |
|
Re: iterating over two arrays
by sh1tn (Priest) on Mar 04, 2005 at 16:18 UTC | |
|
Re: iterating over two arrays
by saintmike (Vicar) on Mar 04, 2005 at 16:28 UTC | |
|
Re: iterating over two arrays (mapcar)
by tye (Sage) on Mar 04, 2005 at 17:53 UTC |