Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem with Statistics::Burst

Problem with Statistics::Burst

Problem with Statistics::Burst

Hi all,

I just downloaded and installed the Statistics::Burst package without any problem.
When I run a test script that is just like the code in the example I get an error, saying:

Can't take log of 0 at blib\lib\Statistics\Burst.pm (autosplit into blib\lib\auto\Statistics\Burst\transistion.al) line 228.

So my question is: does anybody have experience with this module?
Or does anybody have any clue as to why I would get this error..?!?

Just for completeness sake, here is the listing of test script . It runs fine, until the process() call...



use strict;

use Statistics::Burst;

my $burstObj=Statistics::Burst::new();



my @gap_space = (4,5,10);


my $statesUsed=$burstObj->getStatesUsed();

RE: Problem with Statistics::Burst

I still haven't got the tiniest clue as to what could the problem.
And I am totally out of ideas...

Could someone maybe try it and see if this is always the case.
If it is, we're no further really, but if it isn't then it might have something to do with my configuration or something...

RE: Problem with Statistics::Burst

I'm unable to install it.  The remote testing machine I'm on only is perl 5.8.0.  This module apparantly requires 5.8.4 for some reason.

I'll look into trying it again once I get into work.

- Miller

RE: Problem with Statistics::Burst

That's great. Thanks for trying!

I'm using Perl 5.8.7 by the way, on a Windows machine...

RE: Problem with Statistics::Burst

the error is generated by the log() function in perl:

print log(0);

you can email the author


seems the module has only been tested on linux.

- Kevin, perl coder unexceptional! wiggle

RE: Problem with Statistics::Burst

Yes, I can see that the log() function is causing the error.
What is bugging me is why the module would cause such an error, while I am only trying to execute the code provided in the documentation.
I also tried messing with all the parameters, but it just seems that whatever you do, it tries to take the log of 0. And I somehow have the feeling that this shouldn't be the case...

RE: Problem with Statistics::Burst

Oh, and I did send the author a mail, but it bounced...

RE: Problem with Statistics::Burst

there are a lot of junk/outdated modules on CPAN. That module is poorly tested and obviously not be supported by the author.  I see you posted on the CPAN forum. Don't hold you breath waiting for a response. wink

- Kevin, perl coder unexceptional! wiggle

RE: Problem with Statistics::Burst

Just in case anyone who is interested stumbles on this thread somewhere in the future...
I just found out that the code doesn't give the error with a longer array.

So this does works on my system (not sure yet if what the module does is actually correct, but at least it doesn't crash...):



but cutting of, e.g, the last '5' will result in the aforementioned error...

RE: Problem with Statistics::Burst

OK, one last thing, for completeness sake, and then I am going to stop with this bl**dy module...

The example above features an input array with 12 elements.
If you provide a shorter array, the module crashes.
And also, if you provide a longer array, the elements after the first 12 will be neglected.

In other words, the module can only handle 12 intervals.
No more. No less.

RE: Problem with Statistics::Burst

I wonder if this has something to do with that:


sub process
    my ($self)=@_;
    my $result={};

- Kevin, perl coder unexceptional! wiggle

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close