in reply to Confusing Uninitialized warning

Do you have an elsif or such construct below your posted code? Sometimes Perl reports "strange" locations for errors involving these constructs. See No Pause on Elsif in Debugger for more information.

Replies are listed 'Best First'.
Re^2: Confusing Uninitialized warning
by spencerogden (Initiate) on Jun 13, 2005 at 17:17 UTC
    kaif, You've hit the nail on the head. I guess if an error occurs in elsif statements it reports the line number of the parent if statement. Not very helpful. Thanks, Spencer