UPDATED:
Hello Monks,
good morning !!!
Sorry,My previous version of this question was little misleading so I am re framing it again.
I am working on perl project where I have to test whether the array is empty or not and depending on that I have to an action.The pseudo code for that is like this:
If(all the elements of @array contains ){ ## Take some action. } else { ## Do something else. }
If my array contains elements like then I have to take some action.I have used ($array[0] eq " ") in the if condition.Is it a right way to do ? If any body knows about it then kindly let me know about.
Thanks in advance !!!!!
In reply to To test empty array in perl by siddheshsawant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |