in reply to stripping an array
what is the shortest way?
I don't know about shortest. Don't feel like playing golf today, sorry :)
Your arrays need better names. So does my %foo.# untested my %foo = map { split /,/, $_, 2 } @arr2; my @arr3 = map { exists $foo{$_} ? $foo{$_} : () } @arr1;
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: stripping an array
by steves (Curate) on Jan 02, 2003 at 18:19 UTC | |
by jdporter (Paladin) on Jan 02, 2003 at 18:22 UTC |