It seems to me that you should simply initialize your variables up front. IE: my $test = '';
Then you don't have to worry about undefined values, and string compares with the empty string will do what you want.
In reply to Re^3: Defined vs ne ""
by SuicideJunkie
in thread Defined vs ne ""
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |