Devel::Trace seems to be what you are looking for.
EDIT: It's not clear for me if you wanna trace all lines or just some. In the latter case why not defining a function log() which carps what you want only if DEBUG is set?
Cheers Rolf
In reply to Re^3: Module for Printing Line Numbers in Debug?
by LanX
in thread Module for Printing Line Numbers in Debug?
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |