journey has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

Maybe I should be sleeping instead of asking this, but...

I have Perl ActiveState 5.10 on the laptop I use at work. Lately I read some interesting posts about Win32::OLE and I wanted to experiment with the module, nothing urgent though. I realized Win32::OLE was not available through the standard repo accessed by ppm, nor from a popular alternate source(umanitoba).

Questions:

Regards and thanks for providing any enlightenment,

Feedback Thanks to all. Win32::OLE was there alright as the oneliner listed here quickly pointed out (use double quotes however as is preferred under Windows). I misread an error message and wrongly concluded the module was missing. Thanks as well for other posts, they should prove useful when I get off the ground and start using modules more proficiently.

So the answers to my 5 questions can be seen as: 0 0 0 0 1

Replies are listed 'Best First'.
Re: "Lag" of modules in ActiveState ?
by ikegami (Patriarch) on Oct 26, 2008 at 07:08 UTC

    Am I completely off the track and missing something obvious?

    You can't find it on ActiveState's ppm repo cause it comes with ActivePerl.

    Is it worth uninstalling 5.10 and reverting to 5.8?

    I have 6 version of Perl on my machine, including two builds of 5.8.8. Just install them in different directories.

    Should I just do it on my home computer under linux?

    Win32::OLE won't run under linux. As far as I know, it'll run under a Windows emulator under linux, but that won't help since you'd still need to build or download the module under Windows.

    Update: Answered two more questions.

Re: "Lag" of modules in ActiveState ?
by ig (Vicar) on Oct 26, 2008 at 07:49 UTC

    I just installed ActiveState Perl 5.10 on Windows XP Pro and it includes Win32::OLE. Are you certain it is not already installed on your laptop?

Re: "Lag" of modules in ActiveState ?
by Annoymous Monk (Sexton) on Oct 26, 2008 at 06:08 UTC
Re: "Lag" of modules in ActiveState ?
by cosmicperl (Chaplain) on Oct 26, 2008 at 13:56 UTC
    Hi,
      ActiveState have been working on a complete rewrite of their automated build process. They've assured me that soon (hopefully) their default repository will get a lot better. In the mean time use the CPAN Kobes search for any missing ActiveState modules you need.

    With regard to version 5.8 or 5.10, at the moment I'm testing on both 5.8 and 5.8 myself, but only using 5.8 on my customers machines. But that's just my opinion.


    Lyle
Re: "Lag" of modules in ActiveState ?
by Anonymous Monk on Oct 26, 2008 at 08:38 UTC
    I realized Win32::OLE was not available

    I have Perl ActiveState 5.10 on the laptop also, and I run the script used Win32::OLE happily. As matter of fact, Win32 modules are the most important part of Activestate perl(So, IMHO,It's no any reasons not to include it when new version released).

    you try this:

    perl -MWin32::OLE -e "print $Win32::OLE::VERSION;"
    to be sure whether it was installed or not.
      sorry, I forget to login.

      I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
Re: "Lag" of modules in ActiveState ?
by perlsaran (Sexton) on Oct 26, 2008 at 07:35 UTC
    Download using cpan shell..
    perl -MCPAN -e shell cpan>install "Win32::OLE"

    You can have a good sleep after 2 mins :)
Re: "Lag" of modules in ActiveState ?
by pobocks (Chaplain) on Oct 26, 2008 at 06:48 UTC

    Also, there's certainly no need to be patient even if you can't find it, assuming that you have access to CPAN. What I would probably do is download the package from CPAN and put it relative to the code you're playing around with.

    For example, if you are using Win32::OLE, put the code in directory 'C:\CODEGOESHERE', and the OLE.pm and related files in 'C:\CODEGOESHERE\Win32'.

    for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";
      That won't work because the module has a compiled component. You'll get the following error message:
      Can't locate loadable object for module Win32::OLE in @INC
        Huh. Is there any way to get around that? What process does the CPAN shell do when installing the module?
        for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";