Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Hofmator (Curate)
on Oct 22, 2001 at 14:31 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://120490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found