in reply to Re^13: Flummoxed by strict.pm
in thread Flummoxed by strict.pm

BrowserUK, thanks for the note. we may be getting somewhere, because the path shows a path to a Perl that i have in XAMPP, not in C:/perl64/bin. Ikegami said that I might have two Perls installed, and so I do. This is what I got:

C:\Perl64\bin>Hello_world_test.pl Hello, world! C:\xampp\perl\bin\perl.exe

The Xampp Perl does not have the lib with the strict.pm; the Perl64 lib does. Seeing this, I tried to change the path in the Perl file to:

#!c:/perl64/bin/perl.exe print "Hello, world!\n"; print "$^X\n";

with the result:

'Hello_world_test_1.pl' is not recognized as an internal or external c +ommand operable program or batch file.

so, how do I make it go to the C:/perl64/bin/?

Thanks for any help

Replies are listed 'Best First'.
Re^15: Flummoxed by strict.pm
by BrowserUk (Patriarch) on May 10, 2010 at 04:18 UTC
    The Xampp Perl does not have the lib with the strict.pm;

    Then it is broken by design and should be scrapped.

    Seeing this, I tried to change the path in the Perl file to: #!c:/perl64/bin/perl.exe

    As I told you back up there somewhere, Windows doesn't use the shebang line. (Though Apache under Windows might). That's why I though you might also have Cygwin installed.

    If you use a Cygwin shell, that will emulate the *nix-style of shebang processing. Maybe the XAMPP Shell is something similar?

    What output do you get from: set

    What output do you see from: ftype | find "perl"?

Re^15: Flummoxed by strict.pm
by ikegami (Patriarch) on May 10, 2010 at 04:48 UTC

    so, how do I make it go to the C:/perl64/bin/?

    Switch to an account with sufficient privileges and fix the association as you tried earlier.