in reply to Re: Re: Code fails without any reason?
in thread Code fails without any reason?

Your problem may be related to $i being set to 0, but the actual issue is that $in_i is being assigned to an array reference. That is what's causing the memory issue.

Check to see what you're doing in the error() function. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.