From perldoc -f defined:
' Note: Many folks tend to overuse "defined", and then are surprised to discover that the number 0 and "" (the zero-length string) are, in fact, defined values.'
In reply to Re: if ($2) behaves differently than if (defined $2)
by starbolin
in thread if ($2) behaves differently than if (defined $2)
by walto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |