Clear questions and runnable code get the best and fastest answer |
|
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 ( [id://11100900]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|