Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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! ;)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180771]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2018-02-24 14:15 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (310 votes). Check out past polls.