The Undefined Value

What value does a variable contain if you use it before setting it?

Where else could undef come from?

Test for undef with the defined() function, e.g.
if ( !defined($dbh) ) {
    die "Could not connect to db.\n";     }

undef isn't bad, but...

Review

Why does Perl emit a warning when undef is used?

[ ] [ Course Contents ] [ Home ] [ Curriculum ]
http://www.keller.com/dbweb/3/undef.html
Updated Wednesday, 31-Oct-2001 14:17:39 CST

Copyright © 2006
Dan Keller Technical Services
4500 19th St., San Francisco
California, USA 94114
tel: 415 / 861-4500