Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How can one call the lowest value of an array by reference?

by GrandFather (Sage)
on Dec 12, 2012 at 10:05 UTC ( #1008475=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @ordered = sort {$a <=> $b} keys %byValue;
    
    print "$_: @{$byValue{$_}}\n" for @ordered;
    
  2. or download this
    2: Rat Cow
    3: Bat
    5: Cat
    12: Dog
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008475]
help
Chatterbox?
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-11-18 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?