Perl Monk, Perl Meditation | |
PerlMonks |
Re: Counter - number of tags per intervalby LanX (Saint) |
on May 04, 2013 at 10:59 UTC ( [id://1032027]=note: print w/replies, xml ) | Need Help?? |
From what I can see your code is not only hard to read Your using the 3rd level of %hash_pos at the same time for indicating the interval stop
AND for counting $hash_pos{$id}->{$keyu}->{$key}++ if $2 eq '1'; Thats why each count is interpreted as a new stop, resulting in exponentially growing run-time! As another consequence the results should be plain wrong. Did you check them before posting?
UpdateNot sure anymore, this code is really too hard to read! Please try more descriptive and consistent variable names!
Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|