![]() |
|
Your skill will accomplish what the force of many cannot |
|
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?? |
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
|
|