Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: strange behavior of regexby johngg (Canon) |
on Feb 20, 2020 at 15:17 UTC ( [id://11113250]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|