View Single Post
  #6 (permalink)  
Old 05-19-2006, 07:45 AM
rdavisids rdavisids is offline
Active Member
 
Posts: 32
Default perl error

If I run perl -w zmdailyreport

I get
Use of uninitialized value in string ne at zmdailyreport line 103

Here is the area of interest:

sub getMsgIds {
my $ids = shift;
my $user = $options{u};

my $whereClause = "";
my @clauses = ();
my $statement = "";
my $ary;

my %uniqIds = ();
my @clauses = ();

my $count = 0;

%uniqIds = ();

if ($user ne "") {
push @clauses, "(sender like '%".$user."%' or recipient like '%".$user."%')";
}

This appears to be a problem. Is this script correct?
Reply With Quote