Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: strange behavior of regex

by johngg (Canon)
on Feb 20, 2020 at 15:17 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11113250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-28 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found