in reply to Re^2: Test RegEx Validity
in thread Test RegEx Validity

Simpler than Scalar::Util's dualvar() would be to use the expression: !1.