Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Accessing Subroutine Arguments

by lshatzer (Friar)
on Apr 04, 2002 at 00:56 UTC ( #156515=note: print w/ replies, xml ) Need Help??


in reply to Accessing Subroutine Arguments

In my progress as a perl programmer, I started out with your first method, passing in a list of variables, and then grabbing them in that order in the subroutine.

As it got more advanced, I started using the second, (usually with a hash reference or something similar like you posted).

Then in some cases, where I keep passing the same value, since it does not change much, I found creating an object, blessing it, and making methods to do the work was a little easier to do.


Comment on Re: Accessing Subroutine Arguments

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (15)
As of 2015-07-06 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls