Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: If any element-in-array comparision

by fisher (Priest)
on Jan 27, 2012 at 17:07 UTC ( #950417=note: print w/replies, xml ) Need Help??


in reply to Re^4: If any element-in-array comparision
in thread If any element-in-array comparision

Well, ok, then, in addition to other's versions ++ mine:
#!/usr/bin/env perl use strict; use warnings; my @akj = (0.11, 0.05, 0.02); print join ",", @akj if grep {$_>0.1} @akj;

Replies are listed 'Best First'.
Re^6: If any element-in-array comparision
by naturalsciences (Beadle) on Jan 27, 2012 at 17:34 UTC
    Well that's a quite nice and clean looking piece. Something like that I was looking for. Also looks like chessgui-s premonitions were right. :D

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950417]
help
Chatterbox?
[1nickt]: kgb not quite as simple as ... and ...; are interchangeable. There are edge cases, shown in perlsyn.
[1nickt]: Hm well actually I guess it's not the trailing semi-colon that's at issue there, it's disambiguation between the ellipsis and the binary flip-flop
[1nickt]: Although the example given does not produce an error as stated, on my perl.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-11-18 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?