On Jun 15, 2004, at 2:24 PM, Angie Ahl wrote:
Hi
Howdy.
Scouring the books to try and find this, but it's evading me.
How can I test whether something is an array.
For some definition of "something" that includes references, use ref().
:)
ie I have a hash and some values are anon arrays and some
On Jun 15, Angie Ahl said:
>ie I have a hash and some values are anon arrays and some are strings.
>I want to test to see whether one is an array and then traverse it.
if (ref $hash{$key}) {
# do something with @{ $hash{$key} }
}
perldoc -f ref
--
Jeff "japhy" Pinyan [EMAIL PROTEC