in reply to Re: Behaving appropriately based on ref() resultin thread Behaving appropriately based on ref() result
Except that it (Scalar::Util::reftype()) can't tell a regexp from a ref to a scalar.