Pathologically Eclectic Rubbish Lister | |
PerlMonks |
is it an array?by vlashua (Initiate) |
on Jan 20, 2010 at 04:52 UTC ( [id://818366]=perlquestion: print w/replies, xml ) | Need Help?? |
vlashua has asked for the wisdom of the Perl Monks concerning the following question:
data is ldif ... hash is structure: objectclass => a,b,c,d sn => "Lashua" mail => "vlashua@thnktnk.net" ... and many more each key may or may not be an array After parsing a file into %ldif, how do I find which keys contain arrays? Isn't there an isarray function ... it's been a while and I can't find it if there is. if ... @{$ldif{$key}} || exists || =~ /ARRAY/ || ... throw errors or don't work! Help me, masters, with something very simple, I'm sure. Thanks.
Back to
Seekers of Perl Wisdom
|
|