Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: List arguments of a method

by andal (Hermit)
on May 15, 2014 at 06:27 UTC ( [id://1086104]=note: print w/replies, xml ) Need Help??


in reply to List arguments of a method

I don't believe this is possible in Perl. Here all of the arguments are passed in @_ array, so effectively they have no names. In the function you can copy values from that array to any variables you like, or not copy them at all.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found