There's more than one way to do things | |
PerlMonks |
Re: Issue on covariance calculationby johngg (Canon) |
on Apr 13, 2007 at 08:53 UTC ( [id://609848]=note: print w/replies, xml ) | Need Help?? |
Not relevant to your performance issues but your chomp; statements inside the two for loops are not doing anything useful. Without an argument, chomp acts on $_ whereas you want it to act on your loop variables. So do chomp $element; and chomp $inside_elem in the outer and inner loops respectively. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|