When debugging a perl script the debugger gets confused after an initial sequence of commands. Then it points to comments and empty lines in the source code.
I found out that the "use Switch" command causes this problem. When removing it, the problem disappears. I could not find any place in the program to put the statement in order to avoid the problem.
In a separate standalone version of the program using the same sequence of "use" statements it works flawlessly.
Open a bug report, attach the code which confuses the debugger and steps to reproduce (are you using remote or local debugging?)
Well, I am using local debugging. However, the code is about 5000 lines. I try to reproduce it in a code fragment.