Try taking the open and close for that file outside the "for my $element" loop, so it's opened and closed only once. That should speed things up a lot.
In reply to Re: Issue on covariance calculation
by rodion
in thread Issue on covariance calculation
by Mandrake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |