Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Maintainable code is the best code

by dragonchild (Archbishop)
on Oct 02, 2001 at 20:13 UTC ( #116172=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash1; #Hash for stuff
    my %hash2468; #hash for even nos
    my@blahblah;     # Is this even necessary?
    my %someOtherKindOfHash;   # Maybe stuff here
    my %h3; #you might want this hash, too.
    
  2. or download this
    # Predeclared hashes. Used throughout the script.
    my %hashForStuff;
    ...
    
    # Is this even necessary?
    # my @blahblah;
    
  3. or download this
    if (isValidValue($num)) {
        # Do stuff here.
    }
    
    return undef unless isValidValue($num2);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2020-11-26 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?