in reply to Re^3: How to get the index of smallest whole number in an array?
in thread How to get the index of smallest whole number in an array?

Update:Corrected ordering. Thanks to AnomalousMonk

The for is unnecessary. This is equivalent:say ( ... )[0].

The contents of the parens creates an order list smallest to largest; the [0] selects the first element of that list.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Replies are listed 'Best First'.
Re^5: How to get the index of smallest whole number in an array?
by corenth (Monk) on Jul 02, 2018 at 20:35 UTC
    Thanks for the explanation. I'll be playing with the new (for me) syntax :)
    
    
    
    $state{tired}?sleep(40):eat($food);