|Perl Monk, Perl Meditation|
Re: Missing something with regards to referencesby dpuu (Chaplain)
|on Nov 01, 2004 at 22:42 UTC||Need Help??|
Sometimes with these "what am I missing" type of questions, the best approach is to explain how I'd do it, and then see if that answer somehow hits the one thing you need to understand.
Lets start with the function usage model: You suggest
For clarity, lets do the whole hash. You can create a reference to the top level (root) hash using the backslash operator:
All those quotes get tiresome after a while, so lets get rid of them:
Perl flattens arg-lists, so that is identical to the previous version.
So now the implementation (I'll omit the error-checks):
Hopefully the comments are sufficient to explain my thinking.
Opinions my own; statements of fact may be in error.