Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-06-28 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (90 votes). Check out past polls.

    Notices?