%hash = ("name" =>"john", "age"=>"25", "job"=>"programer", "locatio +n"=>"US"); %reverse = reverse%hash; print "$_ \t $hash{$_} $/" for keys %hash; print "$_ \t $reverse{$_} $/" for keys %reverse;
In reply to Re: key-values swapped
by sh1tn
in thread key-values swapped
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |