in reply to If any element-in-array comparision
you need to go through given list at least once, but not with counter. You loop through whole list, preparing your output data, and if there is element bigger than 0.1 you trigger some variable to, say, 1. No need in counter, but in trigger.
Also, you can output the whole array with 'print' and 'join', in one line of code.
Also, you can output the whole array with 'print' and 'join', in one line of code.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: If any element-in-array comparision
by chessgui (Scribe) on Jan 27, 2012 at 16:22 UTC | |
by fisher (Priest) on Jan 27, 2012 at 16:29 UTC | |
by naturalsciences (Beadle) on Jan 27, 2012 at 16:51 UTC | |
by fisher (Priest) on Jan 27, 2012 at 17:07 UTC | |
by naturalsciences (Beadle) on Jan 27, 2012 at 17:34 UTC |
In Section
Seekers of Perl Wisdom