I am going to assume you mean some variable seen by your program that comes externally. If it was your own code you would only need to look at the sigil ( % => hash, $ => scalar, @ => array). If that is the case then you could probably get away with using ref (see perldoc -f ref). There are certainly limitations in ref, but I think it will fit your immediate needs.
Cheers - L~RIn reply to Re: What type are you? Mr Hash, Sir Array, or Miss Scalar?
by Limbic~Region
in thread What type are you? Mr Hash, Sir Array, or Miss Scalar?
by Doraemon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |