in reply to = for lists and hashes?
? Since you're eval'ing the file anyways, there's nothing to keep you from using any perl construct you want, is there?%myHash = ( key1 => 'common Value1', key2 => 'common Value2' ) unless keys %myHash;
You could even hit it key by key, doing
$myHash{key1} ||= 'common Value1'; $myHash{key2} ||= 'common Value2';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: = for lists and hashes?
by hossman (Prior) on Mar 20, 2002 at 21:29 UTC | |
by skazat (Chaplain) on Mar 20, 2002 at 22:58 UTC | |
|
Re: Re: = for lists and hashes?
by skazat (Chaplain) on Mar 20, 2002 at 22:57 UTC |