Install (PPM) Math::Random::MT.
It is a different package completely (and simpler and more reliable) to Math::Random::MT::Auto.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |
I have a Math::Random and Math::Random::MT::Auto, but I
don't see a Math::Random::MT on PPM
the others I see are
Bundle-Math-Random
Math-Random-(AcceptReject,Cauchy,Discrete,GaussianRange,ISAAC,ISAAC-XS,MT-Perl,OO,Secure,TT800,Zipf)
I tried the following on my code:
I changed the use line to
use Math::Random
and left the rest the same...
it doesn't give me the error anymore but it stops by saying
Can't locate object method "new" via package "Math::Random::MT::Auto::
+Range" (perhaps you forgot to load "Math::Random::MT::Auto::Range"?)
so, I wrote
use Math::Random
package MT;
and now it says:
Can't locate object method "curdir" via package "io" (perhaps you forg
+ot to load "io"?)
| [reply] [d/l] [select] |
I see MATH::Random::MT using ppm and installed it that way against Perl 5.10. Guessing from the results at http://matrix.cpantesters.org/?dist=Math-Random-MT%201.12;maxver=1 I think it likely that you should be able to use ppm with any moderately recent Perl from Active State.
Update: I see you've edited your node substantially since I replied to it so the following is in reply to the edited portion:
You have a fundamental lack of knowledge about how modules work and what a module is. Read use and maybe Perl Modules to understand something of how to use modules, how modules work, and why what you are trying doesn't have any chance of flying.
It's about time you told us which version of Perl you are using and if it's older than 5.10.1 I recommend you update to something newer.
True laziness is hard work
| [reply] |