my $max_number=0; #initialize a variable that keeps the maximum + number
Another approach is to store all values into an array, then use List::Util max . This assumes memory is not an issue.
In reply to Re: What is wrong in this code?
by toolic
in thread What is wrong in this code?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |