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

Re^2: named arguments

by Beechbone (Friar)
on Nov 24, 2004 at 13:34 UTC ( [id://410131]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo {
      my ($self, $params) = __params({
        -a => '...',
      }, \@_);
      ...
      if ($params->{a}) {
    
  2. or download this
      foreach my $key (keys %$result) {
        my $tkey = $key; $tkey =~ s/^-//;
    ...
      }
      return $result;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found