Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Why does my get_max_index function return zero? (High Water Mark Algorithm)

by Paladin (Vicar)
on Jun 03, 2019 at 17:53 UTC ( #11100900=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why does my get_max_index function return zero? (High Water Mark Algorithm)
in thread Why does my get_max_index function return zero? (High Water Mark Algorithm)

The $imax inside your for loop is different from the $imax outside it (as you've declared it with my inside the for loop). Remove that my.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2019-10-22 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?