Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: strange behavior of regex

by johngg (Canon)
on Feb 20, 2020 at 15:17 UTC ( #11113250=note: print w/replies, xml ) Need Help??


in reply to strange behavior of regex

if($class eq 's' | $class eq 'x' | $class eq 'u'){

Note that | is a bit-wise OR, you probably meant || which is a logical OR.

Cheers,

JohnGG

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2020-05-26 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?