Perl Monk, Perl Meditation | |
PerlMonks |
Re: min $#a, $#b > $#bby FreeBeerReekingMonk (Deacon) |
on Jan 12, 2016 at 19:42 UTC ( [id://1152603]=note: print w/replies, xml ) | Need Help?? |
Whoops.. Eily caught me telling lies... ok, made a minimal working program:
Output:
YOU FOUND A BUG! workaround it like this: $max = min(0+$#A, 0);
In Section
Seekers of Perl Wisdom
|
|