laziness, impatience, and hubris | |
PerlMonks |
Re: parse hash to subby jsprat (Curate) |
on Jul 15, 2003 at 17:25 UTC ( [id://274483]=note: print w/replies, xml ) | Need Help?? |
Parameters to a sub are flattened into a single list. More information can be found at perlsub. In reference to your question, either pass a reference or shift off the first item, then assign to your hash - ie:
HTH...
In Section
Seekers of Perl Wisdom
|
|