Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re (tilly) 2: passing subroutine arguments directly into a hash

by Hofmator (Curate)
on Oct 22, 2001 at 14:31 UTC ( #120490=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub excise_arg {
      my $args = shift;
      my $arg_name = shift;
    ...
        return delete $args{$arg_name};
      }
    [...]
    
  2. or download this
    if (exists $args->{$arg_name}) {
        return delete $args->{$arg_name};
      }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2021-05-16 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (152 votes). Check out past polls.

    Notices?