Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: subroutine passing array as named parameter

by gellyfish (Monsignor)
on Sep 05, 2006 at 18:58 UTC ( [id://571308]=note: print w/replies, xml ) Need Help??


in reply to subroutine passing array as named parameter

You want to do:

my ($args) = @_;
The
my $args = @_;
Is setting $args to the length of @_

/J\

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-20 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found