⭐ in reply to Is there an isArray() in Perl?
Alternatively, you can use universal.pm
use UNIVERSAL 'isa'; foreach $item (@array) { if (isa($item, 'ARRAY')) { print "We've got an array!!\n"; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Answer: Is there an isArray() in Perl?
by salva (Canon) on May 11, 2005 at 10:42 UTC | |
by ysth (Canon) on May 13, 2005 at 16:13 UTC |
In Section
Seekers of Perl Wisdom