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

ok iam having 2 version of perl installed on my xp.
i did remove perl v5.8.8 form add/remove progs and all c:\perl relative folder but when i reinstall perl and install CGI.pm v3.3 then when i C:\Documents and Settings\MacGyver>perl -MCGI -le "print $CGI::VERSION"; i get 3.15.

This means that that still 2 versiona re there aor some leftover libs. so ill ahve to ask how can i completely wipe out Perl from my XP before installing ti from scratch?

Replies are listed 'Best First'.
Re: Completely wipe out Perl in win32
by rhesa (Vicar) on May 17, 2006 at 19:46 UTC
    You can find out where that CGI comes from with either perldoc -l CGI or something like perl -MCGI -e "print $INC{'CGI.pm'}". That'll at least give you a clue where to look.
      ok i removed eprl again and rebooted. then i di this
      C:\Documents and Settings\MacGyver>perl -MCGI -le "print $CGI::VERSION +"; 3.15 then C:\Documents and Settings\MacGyver>ppm install http://theoryx5.uwinnip +eg.ca/ppms /CGI.pm.ppd and then C:\Documents and Settings\MacGyver>perl -MCGI -le "print $CGI::VERSION +"; 3.15
      Vouala CGI.pm still says its version 3.15 although we have updated it to v3.2!!!!
      What on earth...........?!?!
        I can't verify this right now, but the theoryx site does have CGI 3.20 listed. My guess is that your original perl installation comes with CGI 3.15, and has it in perl/lib, while the theoryx version gets installed in perl/site/lib. I assume then that the site/lib comes later in your @INC, so that the newer version isn't picked up.

        You might try forcing the use of 3.20 by running perl -e "use CGI 3.20; print $CGI::VERSION" or similar. You'd have to use CGI 3.20; in your code as well, of course.

        Is it possible that the site doesn't have the latest version?

        -QM
        --
        Quantum Mechanics: The dreams stuff is made of