Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: My coding guidelines

by jryan (Vicar)
on Nov 25, 2002 at 19:18 UTC ( #215706=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # prototypes only check arg format
    # i.e. (scalar/array/hash/code/glob and number of args)
    ...
    print_string($obj); # fine
    print_string(5);    # uh oh... basic numbers don't have a stringify me
    +thod,
                        # yet the arg passed the prototype since 5 is a sc
    +alar.
    
  2. or download this
    # methods don't check prototypes... at all.
    
    ...
    }
    
    print_string_bad($obj);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-11-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (195 votes), past polls