Do you know where your variables are? | |
PerlMonks |
Re^2: I am stuck on how to print the largest and smallest numbers from user inputted values. Any help is appreciated.by AnomalousMonk (Archbishop) |
on Nov 20, 2014 at 13:51 UTC ( [id://1107928]=note: print w/replies, xml ) | Need Help?? |
As long as List::Util is being brought into play, why not use sum() as well as min() and max()? Just push entries to an array, say @numbers, as long as conditions for continued entry are met, then, after a test for no numbers at all having been entered,
In Section
Seekers of Perl Wisdom
|
|