"be consistent" | |
PerlMonks |
Re^3: my 'if' condition doesn't work, why?by Athanasius (Archbishop) |
on Nov 12, 2014 at 07:36 UTC ( [id://1106950]=note: print w/replies, xml ) | Need Help?? |
shame that it's not standard Perl but instead requires an extra module Well, you can get a similar result using List::Util, which is a core module:
Update: Fixed off-by-one error in the for loop range, thanks to AnomalousMonk. Output:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|