in reply to Re: Receiving Error when running script
in thread Version Conflict and XSLoader

I don't think so. A required version mismatch would look like the following:

>perl -e "use CGI 9.99 CGI version 9.99 required--this is only version 3.20 at -e line 1. BEGIN failed--compilation aborted at -e line 1.

Looks more like a descrepency between the version of the .pm and the associated XS object file(.so/.dll).

Also, the error is for PerlIO::scalar, not IO::Scalar. Since PerlIO::scalar is a core module it means his Perl installation is messed up.

Replies are listed 'Best First'.
Re^3: Version Conflict and XSLoader
by almaler (Novice) on Sep 19, 2007 at 18:19 UTC
    When I installed a Perl5.8 under C:\Perl5.8, I had modules under the c:\Perl\lib which was a previous version. I copied module folders such as Config\Hash from c:\Perl\lib to c:\Perl5.8\lib. Could that be the issue? Do I need to download newer modules of everything?

      If going from one 5.6 version to another, or from one 5.8 version to another, you can copy modules. However, you half-copied a module, copying it's XS component without copying its .pm component or vice-versa. You should have restricted yourself to non-core modules (site/), for starters.

      If you don't mind some of your modules getting upgraded, you would probably have been better off copying c:\perl to c:\perl5.8 then install over c:\perl5.8.

      Yes.
      and, yes.

      You can't simply copy modules (other than those which are pure perl) from one place to another and expect them to work.

Re^3: Receiving Error when running script
by mr_mischief (Monsignor) on Sep 19, 2007 at 18:38 UTC
    Thanks for pointing those out. When I said, "from a glance", I guess I meant it more literally than I thought.

    Update:

    the original node I posted is now updated to show the shortcomings ikegami pointed out in it. Hopefully that will keep it from confusing anyone.
      I uninstalled all older versions of Perl that I had on my PC and installed a fresh copy of Perl 5.8 and used ppm to install all of the modules that I needed. Things seem to be working better. Now when I type in perl myscript.pl, I receive the following error message:

      Win32::GUI: the -style o ption is deprecated! at C:\LegacyPF\Perl\site +\lib\Win32\GUI.pm line 603.