Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl Programming guidelines/rules

by Juerd (Abbot)
on Nov 22, 2002 at 05:36 UTC ( [id://215010]=note: print w/replies, xml ) Need Help??


in reply to Perl Programming guidelines/rules

Some suggestions:

3. no deliberate obfuscation

s/deliberate//

5. OO always to be used where possible

s/possible/appropriate/

6. Pass by reference

.= ' when appropriate'

9. Do not reinvent wheel always check CPAN

.= ' but do reinvent elliptic wheels'

19. All subroutines to be commented

s/commented/documented/

23. No Global Variables

s/Glo/Needless Glo/

24. use my not local

Repeats 23

28. Do not use $_

WTF? Why not? s/foo/bar/ for @xyzzy;

30. Initialise variables

Repeats 1

32. Where code returns a result it should do so or die with a meaningful error and $!

Always die? Even with errors that aren't fatal?

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found