in reply to Re: Is there an isArray() in Perl?
in thread Is there an isArray() in Perl?

UNIVERSAL is available even without use'ing it, so the previous code snippet can be rewritten as:
foreach $item (@array) { if (UNIVERSAL::isa($item, 'ARRAY')) { print "We've got an array!!\n"; } }

Replies are listed 'Best First'.
Re^2: Answer: Is there an isArray() in Perl?
by ysth (Canon) on May 13, 2005 at 16:13 UTC
    Correct; the only point of use'ing UNIVERSAL is to import the function(s)...which he does.