Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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

by supriyoch_2008 (Scribe)
on Dec 12, 2012 at 07:43 UTC ( #1008463=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use warnings;
    ## To find lowest value and to call by reference:  
    # To extract corresponding animal name from Array names:  
    print"\n The animal names are (should be Cow & Rat): ".$names[$i]."\n"
  2. or download this
    C:\Users\x>cd desktop
     Positions of Lowest Value(2)= 4 (should be 2 & 4)
     The animal names are (should be Cow & Rat): Rat 
  3. or download this
    Lowest value= 2
    Positions of Lowest Value(2)= 2  4 (should be 2 & 4)
    The animal names are (should be Cow & Rat): Cow Rat 

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1008463]
Approved by Athanasius
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2016-10-24 19:29 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.