|XP is just a number|
Debugger shows label as belonging to the line beforeby QM (Parson)
|on Feb 09, 2011 at 19:20 UTC||Need Help??|
QM has asked for the
wisdom of the Perl Monks concerning the following question:
Playing with the debugger today, I saw this:
Note the colon after the label's line number. The debugger uses this hint to say this line is breakable. The label belongs to the statement after this:
In fact, if I just list the lines, the colons are correct. Seems to be when stopping with a continue or break they aren't.
But I'm surprised the label is displayed for the previous statement, and not the next. If I break on the while, I get this:
Note that the opening brace is considered part of this statement (ignoring the colon, as this line isn't breakable).