Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Interesting Use of Grep

by Brovnik (Hermit)
on Jun 29, 2001 at 18:36 UTC ( #92641=note: print w/ replies, xml ) Need Help??


in reply to Interesting Use of Grep

It may be overkill, but Quantum::Superpositions allows you to do e.g.
use Quantum::Superpositions; if ($x == any(qw(1 2 3 5 7 9 11))) { print "small Prime\n"; }
which IMHO is nice and readable.
--
Brovnik

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://92641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2016-06-29 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (385 votes). Check out past polls.