Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Exegesis 6 - Named binding

by broquaint (Abbot)
on Jul 31, 2003 at 13:10 UTC ( [id://279557]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub func(Int $this, Str $that) { ... }
    
    ...
    ## or with named parameters
    
    func(that => 'thing you do', this => 0xdeadbeef);
    
  2. or download this
    ($this, $that) := ( 279544, 'a string' );
    
    ## or with named parameters
    
    ($this, $that) := (that => 'thing you do', this => 0xdeadbeef);
    
  3. or download this
    sub &part(Selector $is_sheep, *@data) {
       ## body here
       return *%herd;
    }
    ($goat, $sheep) = part Animal::Cat, @animals;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-29 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found