Be careful about ref $data. If it's blessed, your checks will fail. Whether or not that matters, of course, depends upon the needs of the particular program.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re^2: How to Check whether the Function Parameter is a Scalar or a Hash
by Ovid
in thread How to Check whether the Function Parameter is a Scalar or a Hashref
by ramya2005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |