"be consistent" | |
PerlMonks |
Re: Passing hash referencesby edoc (Chaplain) |
on Jan 31, 2005 at 16:14 UTC ( [id://426638]=note: print w/replies, xml ) | Need Help?? |
I'll hazard a guess that your confusion stems from a single extra character in your code..
You don't need the '\' before names. It's already a reference as returned by getNames, so you're actually sending a reference-to-a-reference to your function. Change it to:
and you'll be able to access the values in your validateNames function with:
cheers, J
In Section
Seekers of Perl Wisdom
|
|