Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Sparing multiple 'or's

by clueless newbie (Deacon)
on Jun 04, 2018 at 21:00 UTC ( #1215888=note: print w/replies, xml ) Need Help??


in reply to Sparing multiple 'or's

Smart match?

if ($a ~~ qw(ABA SCO ACC PHC GHF)) { ... }

Replies are listed 'Best First'.
Re^2: Sparing multiple 'or's
by haukex (Chancellor) on Jun 05, 2018 at 07:28 UTC

    Smart matching is experimental, and may be drastically changed or potentially even removed in future versions of Perl.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2019-11-14 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (76 votes). Check out past polls.

    Notices?