in reply to map hash instead of map array

map { $hash{$_} = 'whatever' } keys %hash;
If you don't use keys on the hash, it will use hash like a list.. Giving key then value, key then value...

-Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Re: map hash instead of map array
by hakkr (Chaplain) on Apr 04, 2002 at 12:16 UTC
    thanks was suffering mental blockage