To expand on the answer above, the correct way to test for definedness, or the lack thereof, is with defined, something like
, not withif (!defined $var) {...
See also existsif ($var eq undef) {...
In reply to Re: Uninitialized errors when using 2 hashes.
by ssandv
in thread Uninitialized errors when using 2 hashes.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |