The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
B::MAGIC	T_MG_OBJ
B::REGEXP       T_RX_OBJ

INPUT
T_RX_OBJ
        if (SvROK($arg)) {
            IV tmp = SvIV((SV*)SvRV($arg));
            $var = INT2PTR($type,tmp);
        }
        else
            croak(\"$var is not a reference to REGEXP\")
T_MG_OBJ
	if (SvROK($arg)) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = INT2PTR($type,tmp);
	}
	else
	    croak(\"$var is not a reference to PVMG\")