Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Interchanging hash values

by DrManhattan (Chaplain)
on Apr 19, 2003 at 23:42 UTC ( [id://251738]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $sort[scalar @sort - 1] == $sort[-1];
    
  2. or download this
    ($a, $b) = ($b, $a);  # swap the values of $a and $b
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
         = ($hash{$sort[-1]}, $hash{$sort[0]});
    
    print Dumper \%hash;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://251738]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found