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

Re: Help me improve this sub with named params!

by blokhead (Monsignor)
on Aug 30, 2003 at 03:56 UTC ( #287871=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @valid = qw/buttons action foo bar xyz/;
    my %args = (
    ...
    while (my ($k,$v) = each %args) {
       ## etc...
    }
    
  2. or download this
    my @valid = qw/buttons action foo bar xyz/;
    my %args = (
    ...
    
        print "$k => $v\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2021-03-08 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (126 votes). Check out past polls.

    Notices?