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
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.
Re^2: Strawberry perl - file association?
Replies are listed 'Best First'.
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.