Undefined is a special *scalar* value. It makes no sense to call an array undefined, so that should read
print ( @rtnVal ? " not empty \n" : " empty \n" );
Whether getElementsByTagName returns an list or not is irrelevant. I was asking what did you want getCBLValue to return.
In reply to Re^3: defined or undef
by ikegami
in thread defined or undef
by kevind0718
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |