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

So I am working on an email client and everything is working fine on my Linux machine. When I move the script to my Windows machine running ActivePerl it dies. I ran the debugging utility on my IDE (OptiPerl) and it seems to trace the problem back to the standard module AutoLoader.

It doesn't seem to like any of the variable declarations in the following piece of code and I can't figure out why. I am assuming that there is not anything wrong with AutoLoader, but why is does it die on those declarations? Would it have something to do with the way I have installed other modules? MIME::WordDecoder uses Unicode::Map uses Dynaloader uses AutoLoader in my email client code

I am thinking that the problem is not a Linux v Win problem but rather that all the modules were properly installed on the Linux machine and I have not installed something correctly on the XP machine for ActivePerl, but I am at a loss since it gets tripped up on a standard module that I didn't have to install myself.

code:
package AutoLoader; use strict; use 5.006_001; our($VERSION, $AUTOLOAD); my $is_dosish; my $is_epoc; my $is_vms; my $is_macos;

Replies are listed 'Best First'.
Re: problems after Linux to XP/ActivePerl move
by olivierp (Hermit) on Jul 28, 2004 at 12:05 UTC
    Did you perchance "upgrade" from a previous version of ActivePerl ?
    The "use 5.006_001" makes me think that you may have "old" 5.6 libraries still
    in your Perl's path, and that you may have installed a recent 5.8.x, in which case
    I'd suggest you completely uninstall Perl, manually delete any remaining directories,
    then reinstall Perl

    --
    Olivier
Re: problems after Linux to XP/ActivePerl move
by Anonymous Monk on Jul 28, 2004 at 11:42 UTC
    What's the error message you get?
      The error I get is "can't locate loadable object for module Unicode::Map"

      and apparently the reason it can't load Unicode::Map is that it can't load DynaLoader which in turn can't load AutoLoader

      And this is a recently purchased laptop with a new installation of ActivePerl so old versions shouldn't be an issue . . . but even when I comment out the verion it still dies on the our($AUTOLOADER)