in reply to Simple Hash problem
The simplest way is with a single loop:
This might even touch off a round of golf...foreach my $k (@mips) { $hash{$k} = 999 unless exists $hash{$k}; }
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Simple Hash problem
by Vavoom (Scribe) on Feb 08, 2002 at 20:41 UTC | |
by trs80 (Priest) on Feb 08, 2002 at 21:38 UTC | |
by crazyinsomniac (Prior) on Feb 09, 2002 at 10:13 UTC | |
|
Re: Re: Simple Hash problem
by particle (Vicar) on Feb 08, 2002 at 20:47 UTC |