Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by supriyoch_2008 (Monk)
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
    #!/usr/bin/perl  
    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"
    +; 
    exit;
    
  2. or download this
    C:\Users\x>cd desktop
    C:\Users\x\Desktop>key1.pl
    
    ...
     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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1008463]
Approved by Athanasius
help
Chatterbox?
[ambrus]: We're spending Christmas and the week after at my brother's place. First time ever, because the last four years they could came home instead.
[ambrus]: robby_dobby: wait what? Glasgow? isn't that one of the most boring towns ever?
[marto]: ambrus: no :)
[robby_dobby]: ambrus: Dunno. marto is from Glasgow. I'm in London and I say London is quite colourful, but boring :-)
[CPUlidster]: Is the glass pyramid still in glasgow

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-12-15 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (431 votes). Check out past polls.

    Notices?