Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: class-dbi-mysql and null values

by tinita (Parson)
on Nov 05, 2006 at 11:01 UTC ( [id://582301]=note: print w/replies, xml ) Need Help??


in reply to class-dbi-mysql and null values

$case->owner( $q->param('owner') );
try
  $case->owner( scalar $q->param('owner') );
because param() returns the empty list (in list context) if a parameter isn't defined.

Replies are listed 'Best First'.
Re^2: class-dbi-mysql and null values
by davidj (Priest) on Nov 05, 2006 at 11:46 UTC
    I thought about doing something like that, also; to get an undefined value in there. However, even if $q->param('owner') is empty, it is still defined.
    davidj

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582301]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found