Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: OR operator

by kelan (Deacon)
on Apr 10, 2003 at 14:48 UTC ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-12-06 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?