in reply to Re^2: Test RegEx Validityin thread Test RegEx Validity
Simpler than Scalar::Util's dualvar() would be to use the expression: !1.