Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs? (ugly++)

by tye (Cardinal)
on Sep 27, 2013 at 04:19 UTC ( #1055925=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        whatever( { user_id => $user, campaign => $cmp } );
    
  2. or download this
        $account->add_client(
            $db,  # DBI handle
            { name => $client, status => 'new' },  # Data
            { require_unique => 1 },  # Options
        );
    
  3. or download this
    sub add_client {
        my( $db, $rec, $opt, @bad ) = @_;
    ...
        my $contract = delete $opt->{contract};
        my $context = _context( delete $opt->{referrer} );
        argue( \$opt, \@bad, { db => $db, rec => $rec } );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-08-22 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (150 votes), past polls