http://qs321.pair.com?node_id=11113250


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