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]>
- Re: Best way to check for ref. to hash David M. Lloyd
- Re: Best way to check for ref. to hash Vivek Dasmohapatra
- Re: Best way to check for ref. to hash Abhijit Menon-Sen
