Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Your named arguments

by dragonchild (Archbishop)
on Nov 08, 2005 at 16:54 UTC ( [id://506803]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    def add_child( Hash options is optional, Tree *children )
        # Subroutine body here
    end
    
  2. or download this
    def add_child( *children )
        options = children[0].is_a( 'Hash' ) ? children.shift : Hash.new;
    ...
    
        # Resume regular processing here
    end
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found