in reply to Reversing Hash
my %hash = ( '1' => 'one', '2' => 'two', '3' => 'three' ); my %new; @new{ values %hash } = keys %hash; print Dumper( \%new );
perl -le 'print+unpack("N",pack("B32","00000000000000000000001000111000"))'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reversing Hash
by Hofmator (Curate) on Mar 03, 2003 at 10:42 UTC |