Perl -check for uninitialized value

Posted by benjamin button on Stack Overflow See other posts from Stack Overflow or by benjamin button
Published on 2010-05-10T12:58:50Z Indexed on 2010/05/10 13:04 UTC
Read the original article Hit count: 239

Filed under:
|

I am doing the below in a perl script:

my @pm1_CS_missing_months = `sqlplus -s $connstr \@DLmissing_months.sql`;

it takes the output of an sql query. if i have to check for no rows selected,how could i do it? i want to do like this:

if(no rows selected)
{
do this;
}

© Stack Overflow or respective owner

Related posts about perl

Related posts about unix