Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Preferred technique for named subroutine parameters?

by akho (Hermit)
on May 22, 2009 at 20:28 UTC ( [id://765739]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings; 
    use strict; 
    ...
        my %args = @_; 
        print "func: one translates to $args{one} \n"; 
    }
    
  2. or download this
    wrong number of arguments for func(); has to be even at a.pl line 8
        main::func('one', 'uno', 'two', 'dos', 'three') called at a.pl lin
    +e 5
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found