Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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


Comment on Re: Interesting Use of Grep
Download Code

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 scrutinizing the Monastery: (6)
As of 2015-09-02 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (92 votes), past polls