The stupid question is the question not asked | |
PerlMonks |
Re: A Quesiton of Numbersby jryan (Vicar) |
on Jul 11, 2002 at 02:14 UTC ( [id://180921]=note: print w/replies, xml ) | Need Help?? |
Of course, you can always reindex and (label) your line numbers using the line pragma. For instance:
Which yields:
This is pretty handy from a debugging standpoint during development. For instance, you could give each major block of code its own series; such as, main code gets lines 0-999, and each subroutine gets a 1000 line block and a label. So if you got an error message like:
You'd know exactly where to look. Best to take them out line labeling when code goes production, however...
In Section
Meditations
|
|