Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: OR operator

by kelan (Deacon)
on Apr 10, 2003 at 14:48 UTC ( [id://249633]=note: print w/replies, xml ) Need Help??


in reply to OR operator

In Perl6, you'll be able to use something very close to this syntax, though.

### <Perl6> if ($color eq ("red" | "blue" | "green")) {} if ($color eq any("red", "blue", "green")) {} ### </Perl6>

kelan


Perl6 Grammar Student

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found