Re: hashrefs inside arrays

2005-11-10 Thread Michael David
From: "Jeremy Kister" <[EMAIL PROTECTED]> To: Sent: Friday, November 11, 2005 9:40 AM Subject: hashrefs inside arrays I'm trying to find if an array's elements are simple strings or if they are hashrefs. my @a = ('string1','string2','str

hashrefs inside arrays

2005-11-10 Thread Jeremy Kister
I'm trying to find if an array's elements are simple strings or if they are hashrefs. my @a = ('string1','string2','string3'); my @a = ( { STRING => 'string1', ID => 1 }, { STRING => 'string2', ID => 2 }, ); my $aref = [EMAIL PROTECTED]; # this value is passed to a sub i've tried: if($a