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

Exegesis 6 - Named binding

by Cine (Friar)
on Jul 31, 2003 at 12:44 UTC ( [id://279544]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Named binding...
    ($who, $why) := (why => $because, who => "me");
    # same as: $who := "me"; $why := $because;
    
  2. or download this
    return $sheep => %herd{$sheep}, $goats => %herd{$goats};
    instead of
    return *%herd;
    
  3. or download this
    *%details = (who=>"me", why=>$because);
    # same as: %details{who} := "me", %details{why} := $because;
    
  4. or download this
    *%details := (who=>"me", why=>$because);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://279544]
Approved by broquaint
Front-paged by IlyaM
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-03-29 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found