Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Handling Null or Undef values in DBI (and things of those nature)...

by kwoff (Friar)
on Jan 08, 2002 at 04:36 UTC ( [id://137006]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $employee_id = (defined $row[0]) ? $row[0] : '';
    
  2. or download this
    @foo = $sth->fetchrow_array();
    if (@foo) {
    ...
    } else {
    ...
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found