Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: A Quesiton of Numbers

by ichimunki (Priest)
on Jul 10, 2002 at 15:12 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-03-28 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found