http://www.perlmonks.org?node_id=118961

xorl has asked for the wisdom of the Perl Monks concerning the following question: (arrays)

I need to figure out if an element in an array is an array. I have something like:
my @array=("red", "blue", "green", ["purple", "orange"]);
I want to test each element and if the element is array I want it to do something special.

Thanks

Originally posted as a Categorized Question.