in reply to Eval not working
Update: However the documentation on execute in DBI notes that
For a non-SELECT statement, execute returns the number of rows affected, if known. If no rows were affected, then execute returns "0E0", which Perl will treat as 0 but will regard as true. Note that it is not an error for no rows to be affected by a statement.Perhaps you could assign the result of $sth->execute() and check to ensure that something was done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Eval not working
by DooDah (Novice) on Sep 03, 2010 at 11:11 UTC | |
by ikegami (Patriarch) on Sep 03, 2010 at 15:52 UTC | |
by DooDah (Novice) on Sep 03, 2010 at 20:07 UTC | |
by TomDLux (Vicar) on Sep 03, 2010 at 14:26 UTC |