Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Maintainable code is the best code

by dragonchild (Archbishop)
on Oct 02, 2001 at 20:13 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found