in reply to Strawberry perl - file association?

Hi :)

On the commandline , type "help assoc" and "help ftype", and you'll see, from microsoft, mention of perl, and how to setup file association

See also
perl file association
perlmonks file association
site:perlmonks.org perl file association
file association
file assoc
wperl
  • Comment on Re: Strawberry perl - file association?

Replies are listed 'Best First'.
Re^2: Strawberry perl - file association?
by zeltus (Beadle) on Oct 24, 2011 at 11:26 UTC
    Yup, FTYPE and ASSOC set up correctly, I believe. But the problem is completely this area as far as I can tell. Calling my script as an argument to perl.exe > perl script.pl works fine. But > script.pl runs the script (correctly) but then if barfs on the require'd package. It does this when a subroutine declared as, say, main::runme() is called. So the require opertion itself seems to work OK. Looks like there is some sort of conflict betwixt the namespaces and Windows. Somewhere. Somehow.

      Please reduce your code to a small, self-contained example that still exhibits the error. Most likely, this will mean you have to create your main file and the file that is loaded via require, but neither should be more than 10 lines long. Once you have these, we can look at them and try to reproduce your problem.

      Are you sure that the perl.exe that you are explicitly invoking is the same perl.exe that your file association is set up for? Output $^X from within your Perl script to check.