Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^7: Perl command line interpreter not working

by baperl (Sexton)
on Oct 15, 2011 at 03:14 UTC ( [id://931620]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Perl command line interpreter not working
in thread Perl command line interpreter not working

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"?)

Replies are listed 'Best First'.
Re^8: Perl command line interpreter not working
by GrandFather (Saint) on Oct 15, 2011 at 03:32 UTC

    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
      I am using Perl 5.12 and I don't see MATH::Random::MT in PPM. Perhaps it is not in the newer version, as are many other modules. Any more suggestions?

        If you can't get it using ppm (I'm surprised, but can't test the assertion at present) then open a command window and type:

        cpan Math::Random::MT

        If you are using an Active State Perl and this is the first time you've tried using cpan it'll probably want to install a compiler. Generally, aside from taking a bit of time and a little disk space, there is no problem in just letting cpan do its thing. Take the defaults for all the questions and you should be fine.

        True laziness is hard work

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-28 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found