Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: String::Combination Package Bug?

by amarquis (Curate)
on Jan 02, 2008 at 16:46 UTC ( [id://660003]=note: print w/replies, xml ) Need Help??

in reply to String::Combination Package Bug?

I downloaded String::Combination via ActiveState's PPM, and produced this behavior.

I couldn't find the distro (or the author) on CPAN, but the documentation in the distro's POD seems to indicate that the combinations should be unique:

"From a set of n elements, given an integer k, the algorithm calculates k! * n!/(k!(n-k)!) elements that are all the combinations of k elements from the set of n elements. "

I believe Active's PPM just grabs "whatever will build" from CPAN, and doesn't do any other testing. Perhaps the C library that this module is the XS glue for is making assumptions about the machine it is running on?

Edit: Forgot to mention, you can grab Algorithm::Combinatorics or Math::Combinatorics via PPM. Looking quickly, I'm thinking that they are overkill for your problem, but they are an option at least.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://660003]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-05-30 00:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found