Yup. Just got this recently.

ref

http://perldoc.perl.org/functions/ref.html

Returns a non-empty string if EXPR is a reference, the empty string
otherwise. If EXPR is not specified, $_  will be used. The value
returned depends on the type of thing the reference is a reference to.
Builtin types include:

On 4/19/07, Bryan R Harris <[EMAIL PROTECTED]> wrote:


Is there a way to determine whether a variable is a pointer to a hash,
pointer to an array, or just a number/string?

TIA.

- Bryan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to