Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: subroutine reference parameters

by lidden (Curate)
on Jun 03, 2011 at 14:40 UTC ( [id://907990]=note: print w/replies, xml ) Need Help??


in reply to subroutine reference parameters

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://907990]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found