in reply to Cygwin Perl: Question about default @INC

I used to have different Perl versions between Cygwin and MS Windows. Cygwin was at Perl 5.8 and Windows was at 5.10.1.

Along the way, I hit some button that upgraded Cygwin and the result appears to be that both are at Perl 5.10.1

I don't know how to explicitly maintain different versions.
The Cygwin upgrade apparently figured out that I had a more recent Perl and it used it. How and why? I don't know. But that appears to be what happened.

C:\Projects>perl -V Set up gcc environment - 3.4.5 (mingw-vista special r3) Summary of my perl5 (revision 5 version 10 subversion 1) configuration +: .... Locally applied patches: ActivePerl Build 1007 [291969] 0abd0d disable non-unicode case insensitive trie matching Built under MSWin32 Compiled at Jan 26 2010 23:15:11 @INC: C:/Perl/site/lib C:/Perl/lib . C:\Projects>bash bash-3.2$ perl -V Set up gcc environment - 3.4.5 (mingw-vista special r3) Summary of my perl5 (revision 5 version 10 subversion 1) configuration +: .... Locally applied patches: ActivePerl Build 1007 [291969] 0abd0d disable non-unicode case insensitive trie matching Built under MSWin32 Compiled at Jan 26 2010 23:15:11 @INC: C:/Perl/site/lib C:/Perl/lib . bash-3.2$

Replies are listed 'Best First'.
Re^2: Cygwin Perl: Question about default @INC
by choroba (Cardinal) on Jan 09, 2012 at 16:35 UTC
    These are both ActiveState Perls.
      Yes. I understand that.

      The system didn't start out that way.

      The sequence was :
      (1) install Active State Perl (Perl 5.6)
      (2) install Cygwin (Perl 5.8)
      (3) upgrade Active State (to Perl 5.10)
      (4) upgrade Cygwin (changed Perl installation to AS Perl 5.10)

      What happened appears to be that the upgrade of Cygwin used the upgrade of Active State Perl.

      I'm not saying that I have the "answer". I am just presenting some "weird stuff" that I've personally seen re: Cygwin.

        Not a weird thing. It seems that your Cygwin PATH environment variable points to ActiveState Perl before the /usr/bin or /usr/local/bin directory where Cygwin's Perl resides. Check it out by typping on bash:
        $ echo $PATH
        Assuming Cygwin Perl is installed in /usr/bin:
        $ /usr/bin/perl -V