Pathologically Eclectic Rubbish Lister | |
PerlMonks |
use of uninitialized valuesby Baz (Friar) |
on Apr 06, 2003 at 14:09 UTC ( [id://248435]=perlquestion: print w/replies, xml ) | Need Help?? |
Baz has asked for the wisdom of the Perl Monks concerning the following question:
I have the following in my script -
where fetchrow_array belongs to DBI Sometimes though fetchrow_array will not find an entry, so what I want to do is store missing entries in my database as 0 in the corresponding variable. So lets say the corresponding entry for $coord_{"AB"}{5}[[2]] has no entry in the database, then I want $coord_{"AB"}{5}[[2]] = 0 instead of $coord_{"AB"}{5}[[2]] = "uninitialized value"; So I could use something like - but how does perl represent this "uninitialized value" that I'm using above? I hope that makes sense. Thanks Barry.
Back to
Seekers of Perl Wisdom
|
|