Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Kenosis (Priest)
on Dec 12, 2012 at 08:34 UTC ( #1008470=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    
    ...
    say "Positions of Lowest Value ($lowest) = @{$hash{$lowest}}";
    print 'The animal names are: ';
    print join ' ', map $names[$_], @{$hash{$lowest}};
    
  2. or download this
    Positions of Lowest Value (2) = 2 4
    The animal names are: Cow Rat
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008470]
help
Chatterbox?
[LanX]: oh
[LanX]: but do you have a car?
[TCLion]: Ok I have used SoPW, any feedback would be appreciated
[Eily]: yes, but if you have to borrow it please don't leave any parselmouth stains on it!
[TCLion]: was wondering why is the code window so small for SoPW?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2017-03-23 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.