Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: A Quesiton of Numbers

by ichimunki (Priest)
on Jul 10, 2002 at 15:12 UTC ( #180771=note: print w/ replies, xml ) Need Help??

in reply to A Quesiton of Numbers

Line numbers serve some purposes, both as labels and as reference points for errors. Fortunately, we don't need to hardcode the numbers in anymore to get either of these benefits. Perl has labels to put on blocks, should you want one for a goto or whatever. Any decent text editor (well, since I only use emacs, this is my yardstick for decent) should be able to tell you what line the cursor is on-- allowing you to find the point at which the error occurred.

As others have said, line numbering is quite annoying if you need to reorder or refactor your code, since changing them (and only them) is probably necessary. In fact, I'm now having flashbacks to programming my C-64. Thanks a lot! ;)

Comment on Re: A Quesiton of Numbers

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180771]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-10-06 21:10 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (160 votes), past polls