|go ahead... be a heretic|
parametersby Anonymous Monk
|on Jan 19, 2001 at 01:45 UTC||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a subroutine that needs to take two parameters, a scalar and an array. If I call and define it like this:
Will $var have the value of $scalar and @list the value of @array?
If not, I had considered passing in the parameters as a scalar and a reference to an array. That would go like this
Am I correctly passing an array reference into func? And once I do so, how do I get it out again?
Thanks in advance.