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 PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
CPAN ID: PINYAN [Need a programmer? If you like my work, let me know.]
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>