![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Passing array and hash togetherby linuxer (Curate) |
on Apr 20, 2009 at 20:56 UTC ( #758795=note: print w/replies, xml ) | Need Help?? |
Please use <code></code> tags to format your code. In routine_2 your hash reference is stored as the last element in @array. quoted from perldata
You must decide now, whether to pass the array as last argument to routine_2 or to pass a reference to that array and then use that reference in your subroutine. I'd use the second option. ;o)
In Section
Seekers of Perl Wisdom
|
|