go ahead... be a heretic | |
PerlMonks |
Re: Class::DBI find_or_create method inserts record but $obj->id is undefby perrin (Chancellor) |
on Jan 24, 2004 at 00:09 UTC ( [id://323744]=note: print w/replies, xml ) | Need Help?? |
You should check out Class::DBI::FromCGI, which does this for you. However, if you just delete the id field from your CGI object after the call to find_or_create, your current code should work.
In Section
Seekers of Perl Wisdom
|
|