naturalsciences has asked for the wisdom of the Perl Monks concerning the following question:
hello,
I had a need to evaluate a list or an array. So that if any element within this list would be bigger than 0.1 I would print the whole list.
It would be possible to do it by means of counter. (Initially set to something(like zero), then a loop through whole list, in case a comparison succeeds ++ to counter, later I can check it, if its gotten bigger or not)
Still I was wondering if there is a more elegant solution, maybe there already is some tool in Perl itself?
Back to
Seekers of Perl Wisdom