Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Passing hash referencesby bgreenlee (Friar) |
on Jan 31, 2005 at 16:16 UTC ( [id://426639]=note: print w/replies, xml ) | Need Help?? |
One issue you have is that you're adding a level of indirection by passing a reference to $names to validateNames, but it's already a reference (to the %data hash). So just call &validateNames($names). As for printing the data, you can do this:
Finally, the places to look for more information on data structures and references are: perldata, perldsc, and perlref. -b
In Section
Seekers of Perl Wisdom
|
|