Just another Perl shrine | |
PerlMonks |
Unexpected Outputby k_manimuthu (Monk) |
on Jul 28, 2010 at 07:57 UTC ( [id://851677]=perlquestion: print w/replies, xml ) | Need Help?? |
k_manimuthu has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, I need to assign $string = 'some values' based on the length of the array. If length of the array equals to '-1' I want to assign $string = 'True', otherwise I expect $string = 'False'. I got $string = 'False' even though the array values is equals to '-1'. But i am add a line to test the array value, I got the output as 'True'. I am confused, why the code's gives the mismatch output. Below I placed the code. Could someone please explain on this. Thanks
Note : I am using perl 5.8.9 in Windows
Back to
Seekers of Perl Wisdom
|
|