in reply to Perl to exe problem using PDK

Your @INC path is empty. You need to set it (either using PERL5LIB or use lib or the -I switch), so that Perl can find the module.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^2: Perl to exe problem using PDK
by Anonymous Monk on Jun 19, 2009 at 08:10 UTC
    That module is CORE, it should already be in @INC

      Good point. But this means that either @INC was explicitly changed in some BEGIN section, or the Perl installation itself was broken, because even without setting any PERL5LIB variable, @INC should at least contain the path to the core libraries.

      To check the installation, one could do a

      perl -lwe "print @INC"
      on the Windows command line. On my system, this yields
      c:/perl/site/libc:/perl/lib.
      (and, no, I have no idea where the dot after lib comes from, but on Windows, LIB and LIB. are presumably the same anyway). If @INC is empty here too, the installation is broken (but then Perl should find *no* Core modules at all). So, more likely, there must be some BEGIN section which resets @INC....

      -- 
      Ronald Fischer <ynnor@mm.st>