My code looks like following

foreach (@abc)
{
   $sth = $dbh->prepare("select distinct X from Y where P='$_'");
   $sth->execute;
   $reference = $sth->fetchall_arrayref();

   if(@$reference eq '')
   {
      print "$_ in empty";
   }

}

For some values of $_ the $reference has some value and is empty for others. 
How do I check ?

I tried

if(@$reference eq '')

DIDN'T WORK !!!


Help is appreciated.
Thank you
Aman

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to