Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Strawberry perl - file association?

by zeltus (Sexton)
on Oct 24, 2011 at 11:26 UTC ( #933357=note: print w/ replies, xml ) Need Help??


in reply to Re: Strawberry perl - file association?
in thread Strawberry perl - file association?

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.


Comment on Re^2: Strawberry perl - file association?
Re^3: Strawberry perl - file association?
by Corion (Pope) on Oct 24, 2011 at 11:29 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://933357]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-08-29 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls