in reply to Re: 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)

$imax=$i if ($_[$i] > $imax);

No, sorry, that doesn't make sense.

Update: Oh, I see you noticed it too, sorry :-)

Replies are listed 'Best First'.
Re^3: Why does my get_max_index function return zero? (High Water Mark Algorithm)
by holli (Abbot) on Jun 03, 2019 at 17:13 UTC
    Indeed it doesn't. But taking breaks and having beers is still a good advice =)


    holli

    You can lead your users to water, but alas, you cannot drown them.