in reply to Re^5: timestamp in perl
in thread timestamp in perl
and the error it generates ismy $check_inv_sql = "SELECT MAX(cdt) AS md FROM s_i ORDER BY cdt LIMIT + 1"; $sth=$dbh->prepare($s_query) or die $dbh->errstr; $sth->execute; my $mt; if (my $hash_ref = $sth->fetchrow_hashref) { $mt = $hash_ref->{'md'}; print "$mt\n";#this returns below error }
It seems to me that I am not assigning md correctly to $mt. If that is indeed the case, how do I correct the above code....thx!Use of uninitialized value $mt in concatenation (.) or string at Sb.pl + line 56.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: timestamp in perl
by Util (Priest) on Sep 25, 2011 at 00:31 UTC | |
by baperl (Sexton) on Sep 25, 2011 at 02:37 UTC |