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

Re: Preferred technique for named subroutine parameters?

by AnomalousMonk (Archbishop)
on May 22, 2009 at 20:03 UTC ( [id://765733]=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 = @_;  # <-- line 48
        print "func_2: one translates to $args{one} \n";
        }
    
  2. or download this
    >perl 765727_1.pl
    Odd number of elements in anonymous hash at 765727_1.pl line 38.
    func_1: one translates to uno
    Odd number of elements in hash assignment at 765727_1.pl line 48.
    func_2: one translates to uno
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found