I want to check to see if an argument is a reference to a hash.

Is this the best way to do it:

if (SvROK(arg) && SvTYPE(SvRV(arg)) == SVt_PVHV) {
    /* It's a hash ref */
} else {
    /* It's not */
}

- D

<[EMAIL PROTECTED]>

Reply via email to