Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 meditating upon the Monastery: (6)
As of 2014-07-13 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (248 votes), past polls