in reply to Re: Use of uninitialized value in string comparison (cmp)
in thread Use of uninitialized value in string comparison (cmp)

Thanks a lot to every one. I got an hint now to solve this. Sorry about sending a big xml DATA, I was not getting this error when it was few lines of XML. I got the errors only when it was a big xml. In future I will try to send the indented xml. Thanks again to all.

  • Comment on Re^2: Use of uninitialized value in string comparison (cmp)

Replies are listed 'Best First'.
Re^3: Use of uninitialized value in string comparison (cmp)
by roboticus (Chancellor) on Mar 19, 2010 at 15:01 UTC

    bharathinc:

    Yes, that's why pajout mentioned the tip on minimizing your code example. You'll find that while minimizing your code to the minimum case that shows the fault, you'll usually find the line(s) of code or data that exhibit the problem. Once you know those few lines, the error frequently sticks out like a sore thumb. So you get the answer quicker, and learn faster to boot.

    ...roboticus