in reply to Re: two dimensional array lookup
in thread two dimensional array lookup
like thisgrep { $h1{$_}=1 } @{$all[0]};
in order not to get all my elements from @{$all[0]} as a return value of grep.grep { $h1{$_}=1; undef; } @{$all[0]};
I even might write:
@h1{@{$all[0]}}=(1) x @{$all[0]};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: two dimensional array lookup
by ctilmes (Vicar) on Jul 17, 2003 at 10:10 UTC |