P is for Practical | |
PerlMonks |
Re: Re: largest number inside array/hashby RMGir (Prior) |
on Apr 06, 2004 at 20:54 UTC ( [id://343113]=note: print w/replies, xml ) | Need Help?? |
my $max=0;
That's the classic max (or min) implementation error. What if all numbers are negative?
Mike
In Section
Seekers of Perl Wisdom
|
|