|Do you know where your variables are?|
Unexpected Outputby k_manimuthu (Monk)
|on Jul 28, 2010 at 07:57 UTC||Need Help??|
k_manimuthu has asked for the
wisdom of the Perl Monks concerning the following question:
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.
Note : I am using perl 5.8.9 in Windows