in reply to undefined value as a hash reference?
Assumption: you are using DBI.
First, I would use placeholders:
my $SQL_UserUpdate = q(update ClassRoster set Reminded={ fn NOW() } wh +ere idEnrollee = '?'); ... ... $stmt = $db->prepare($SQL_UserUpdate); $stmt->execute($RS_UsersToRemind->Fields('idEnrollee')->{Value});
However, the real cause of the error is that, because your string is in single quotes, the parser is trying to resolve the stuff between "{" and "}" as a hashref. Since fn NOW() apparently has a value of undef, {undef} generates the error you are seeing. what ccn said above.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: undefined value as a hash reference?
by grashoper (Monk) on Nov 05, 2008 at 08:31 UTC | |
by MidLifeXis (Monsignor) on Nov 05, 2008 at 14:40 UTC | |
by grashoper (Monk) on Nov 05, 2008 at 16:10 UTC | |
by MidLifeXis (Monsignor) on Nov 05, 2008 at 16:36 UTC | |
by grashoper (Monk) on Nov 05, 2008 at 17:19 UTC | |
|