Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: index of the minimum element of the array

by LanX (Canon)
on Jan 17, 2014 at 18:40 UTC ( #1071001=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<109> @a=  map { int rand 100 } 1..10
     => (96, 10, 99, 9, 43, 8, 20, 85, 42, 26)
    ...
    
      DB<111> print minindex @a
    5
    
  2. or download this
      DB<114> @a=  map { int rand 100 } 1..10 => (22, 15, 27, 44, 70, 85, 
    +74, 93, 96, 14)
    
    ...
    
      DB<116> print minindex @a
    9
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-08-02 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls