Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by Athanasius (Abbot)
on Dec 12, 2012 at 08:05 UTC ( #1008468=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use Modern::Perl;
    ...
        printf "Lowest value: %d, index: %d, corresponding name: %s\n",
                $min_val, $_, $names[$_];
    }
    
  2. or download this
    18:01 >perl 429_SoPW.pl
    Lowest value: 2, index: 2, corresponding name: Cow
    Lowest value: 2, index: 4, corresponding name: Rat
    
    18:03 >
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-07-03 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (55 votes), past polls