Have getConfigValue return the string "0E0", Or$a = "0E0" || 1; die $a;
The real question is why write such a module when there are tons of them? Nevermindmy $foo = getFoo("foo") ; $foo = 1 unless defined $foo;
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! ** The Third rule of perl club is a statement of fact: pod is sexy. |
In reply to Re: undef vs 0
by PodMaster
in thread undef vs 0
by skx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |