You might want to check out the reftype() and blessed() subs from Scalar::Util (core module as of 5.8) They're designed to cleanly split the kludgy dual nature of ref() into two separate tests.
-Blake
In reply to Re: if (ref $value eq "ARRAY") {
by blakem
in thread if (ref $value eq "ARRAY") {
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |