How is this a CGI related question? It's not. This is strictly a perl beginner question. I am sorry Aman for using your e-mail as an example.
Cross-posting is annoying to many of us that are subscribed to several of these similar lists. If you absolutely feel it is necessary to cross-post for some reason, think of taking another plan of action. Post your question to one mail list first. Wait for replies (I am talking at least 20 minutes). If you don't find your answer, or the complete answer, then rephrase your question or problem and post to another mail list (one mail list at a time is the idea). Repeat AS NECESSARY. [RANT] If you cross-post, your post will be deleted! (at least in my box) I got tired of cross-posts coming up twice in each of my filtered folders. (I filter the header searching for [EMAIL PROTECTED] or [EMAIL PROTECTED]) So now I am going to add a new filter to delete mails that have both e-mails (among other mail list combinations) in the header. [END RANT] I apologize if I step out of line with this post, but this will be the only one of this kind from me. -Nikola P.S. remember the same rules apply to replying to these kinds of posts. > -----Original Message----- > From: Aman Raheja [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 02, 2002 2:29 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: query about empty return value from SELECT > > > 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] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]