Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Collapsing repetitive equality tests: || vs {} vs // (an observation)

by phaylon (Curate)
on Feb 27, 2007 at 15:36 UTC ( [id://602311]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Collapsing repetitive equality tests: || vs {} vs // (an observation)
in thread Collapsing repetitive equality tests: || vs {} vs // (an observation)

There's also one in Perl6::Junction :)

if (any(qw(A B C)) eq $foo) { print 'FOO' }

Ordinary morality is for ordinary people. -- Aleister Crowley
  • Comment on Re^5: Collapsing repetitive equality tests: || vs {} vs // (an observation)
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found