![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: subroutine reference parametersby lidden (Curate) |
on Jun 03, 2011 at 14:40 UTC ( #907990=note: print w/replies, xml ) | Need Help?? |
It seems using the hash as an argument in the function call makes it reset the internal iterator used by each, thats why you get an infinite loop. Also you are declaring your function with a prototype, but when you call it you use an &. The & disables the prototype check.
In Section
Seekers of Perl Wisdom
|
|