Perl Monk, Perl Meditation | |
PerlMonks |
Re: hash of arrays to a subrutine?by Fang (Pilgrim) |
on Jan 04, 2006 at 11:02 UTC ( [id://520845]=note: print w/replies, xml ) | Need Help?? |
Hello and welcome tamaguchi. One of the best starting point for references that I know of is the perlreftut man page, available online or on your system by issuing the perldoc perlreftut command. It should get you started on solid ground. If you need more infos, the book Learning Perl Objects, References and Modules is an excellent ressource, having 5 chapters about references, from introduction to tricks and recipe-like examples. After that, if you still have some unanswered questions, there is perlmonks.org. But I'm sure you know about that one already. Update: completely forgot about the technical part of your question about passing by reference a hash of arrays to a subroutine. Here's how you could do it.
If any of the above code looks unclear to you, start by reading the perlreftut doc, it should all suddenly make sense. Once you're more at ease with references, you will certainly want to have a look at the Perl Data Structures Cookbook, as well as at the complete references documentation.
In Section
Seekers of Perl Wisdom
|
|