Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to write long programms?

by Jouke (Curate)
on Mar 07, 2001 at 13:15 UTC ( #62695=note: print w/replies, xml ) Need Help??


in reply to How to write long programms?

When code starts growing, it can be a good idea to split things up into modules. Give your variables sensible names. Same goes for subroutines.

More importantly: document what you do. If you write code of which you even think it has the slightest chance that someone else will not immediately understand what happens, write a commentline in which you describe what it does. That does not only go for complicated regexes, but also for calculations and stuff like that.

Hope it helps...

Jouke Visser, Perl 'Adept'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://62695]
help
Chatterbox?
[choroba]: Email::Address DoS
[Corion]: (that module has been deprecated by its author already, so that's fair. Although I wonder why the backtracking can't be fixed to handle the formfeeds gracefully)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2018-06-20 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (116 votes). Check out past polls.

    Notices?