if(@output ne '')That will always evaluate to true since an array evaluated in scalar context returns the number of elements (0, 1, 2, etc.); it will not return the empty string. Perhaps this will be better:
if(@output)
In reply to Re: Empty string checking in output
by toolic
in thread Empty string checking in output
by Kumar Mantri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |