this is probably really simple.
I am returning a numeric value from a database and want to trap it if it is null. So what i do at the moment is:
if ($id eq undef){
###deal with id
}else{
###deal with not undef id
}
What that does, works however it keeps throwing 'Use of uninitialised values in string eq' warnings, and i would like to be able to get rid of them, using an undef safe idea.
Any ideas?
Thanks -- Joe.
In reply to String equality and undef by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |