Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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
Domain Nodelet?
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 imbibing at the Monastery: (4)
As of 2022-01-23 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?