Perl: the Markov chain saw | |
PerlMonks |
To test empty array in perlby siddheshsawant (Sexton) |
on Apr 26, 2010 at 14:42 UTC ( [id://836926]=perlquestion: print w/replies, xml ) | Need Help?? |
siddheshsawant has asked for the wisdom of the Perl Monks concerning the following question: 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 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 !!!!!
Back to
Seekers of Perl Wisdom
|
|