Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 perusing the Monastery: (11)
As of 2015-07-02 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls