in reply to Empty string checking in output
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Empty string checking in output
by Kumar Mantri (Novice) on Aug 17, 2011 at 05:02 UTC | |
by AnomalousMonk (Archbishop) on Aug 17, 2011 at 06:32 UTC | |
by Kumar Mantri (Novice) on Aug 17, 2011 at 09:12 UTC | |
by AnomalousMonk (Archbishop) on Aug 17, 2011 at 13:56 UTC | |
by Kumar Mantri (Novice) on Aug 18, 2011 at 13:38 UTC | |
|