in reply to Re: datatype from SQL
in thread datatype from SQL

well, i tried your suggestion, changing $newUID to $newUID->[0], but it gave me the following error:
Can't use string ("1") as an ARRAY ref while "strict refs" in use at n +ewsedit.pl line 61.
so i think that $newUID must be the scalar ref, not an array ref, right?

Replies are listed 'Best First'.
Re^3: datatype from SQL
by VSarkiss (Monsignor) on Jun 23, 2006 at 17:42 UTC
Re^3: datatype from SQL
by derby (Abbot) on Jun 23, 2006 at 17:45 UTC

    What version of DBI are you using and which DBD driver? You're use of $in{param} leads me to believe you're also using cgi-lib (instead of CGI) and may have a very old installation.

    -derby

    Update: And is this an XY Problem ... are you just trying to get create the next UID ... if so, most DB's have an auto-incrementing field feature.