for(my $j=1;$j<=$in[$i];$j++){ #$j is the actual no. of sector +s. my $num=($in[$i+12]*$MaxAgc0); push @Attn, $num/$in[$i+10]; }
It's not clear to me what the @Attn array is supposed to be used for. As the number of iterations of the loop depends on the data (i.e. $in[$i] — which you haven't specified), it's not clear how many items are actually pushed onto the array. Also, all values pushed in one run of the loop seem to be same, because $j is never used in the computation. And then later, you index @Attn with multiples of 14 ...
Questions over questions — at least for me :) Could you elaborate a bit more?
In reply to Re: Can you help profile this?
by Eliya
in thread Can you help profile this?
by Fighter2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |