in reply to What type are you? Mr Hash, Sir Array, or Miss Scalar?
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~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: What type are you? Mr Hash, Sir Array, or Miss Scalar?
by Doraemon (Beadle) on May 12, 2004 at 15:48 UTC | |
by Grygonos (Chaplain) on May 12, 2004 at 16:39 UTC |