Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-12-25 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls