in reply to Re^8: Flummoxed by strict.pm
in thread Flummoxed by strict.pm
When you launch Perl via the .pl association, @INC contains only ".". When you launch Perl via the PATH, it contains the three items it should. You appear to have two Perls installed.
What do you get from
>assoc .pl .pl=Perl >ftype Perl Perl="C:\Perl64\bin\perl.exe" "%1" %*
(Replace "Perl" in the second command with what's right of the "=" in the output of the first.)
If you don't get the same output, you can fix it using
ftype Perl="C:\Perl64\bin\perl.exe" "%1" %*
(Again, replace "Perl" with the appropriate value.)
Update: Cleanup. Added fix.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Flummoxed by strict.pm
by CaptainRob (Novice) on May 08, 2010 at 16:13 UTC | |
by ikegami (Patriarch) on May 08, 2010 at 17:45 UTC | |
by CaptainRob (Novice) on May 10, 2010 at 00:13 UTC | |
by BrowserUk (Patriarch) on May 10, 2010 at 00:40 UTC | |
by CaptainRob (Novice) on May 10, 2010 at 03:30 UTC | |
| |
by ikegami (Patriarch) on May 10, 2010 at 03:02 UTC | |
by CaptainRob (Novice) on May 10, 2010 at 19:11 UTC | |
|