Re: Is an Array

2004-06-15 Thread James Edward Gray II
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

Re: Is an Array

2004-06-15 Thread Jeff 'japhy' Pinyan
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