An interesting thing to notice, is that defined returns nothing if something is undef. But it prints a 1 if defined.
Perl functions/operators do not return "nothing". defined returns either "TRUE" or "FALSE", which is 1 for true or "" for false.
In reply to Re^2: defined vs null string
by jwkrahn
in thread defined vs null string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |