Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Exegesis 6 - Named binding

by broquaint (Abbot)
on Jul 31, 2003 at 13:10 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-11-27 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?