Perl: the Markov chain saw | |
PerlMonks |
Re: Another scoping issue: How do I send 2 variables to my sub and use both.by starX (Chaplain) |
on Feb 05, 2010 at 16:29 UTC ( [id://821600]=note: print w/replies, xml ) | Need Help?? |
Highly untested, but try this:
You're passing in a list of two elements, so you need to shift the second one onto a more localized variable in order to access it within the subroutine.
--starX
In Section
Seekers of Perl Wisdom
|
|