in reply to Re: Can you help profile this?
in thread Can you help profile this?

Regarding the bit about line 7:

An array evaluated in scalar format returns the length of the array. So @in would indeed have returned a count of its elements.

Also, $#in would return the last index of @in. This would mean that the middle expression in your for loops to: $i <= $#in.