Yes, it is spending much time in that loop, because 90% of your code is there.
You need to divide your code into subroutines, preferably small ones, to get a reasonable analysis from a profiler.
In reply to Re^3: Speed up perl code
by Anonymous Monk
in thread Speed up perl code
by cibien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |