Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Strawberry perl - file association?

by zeltus (Beadle)
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 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.
  • Comment on Re^2: Strawberry perl - file association?

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://933357]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-04-24 14:45 GMT
Find Nodes?
    Voting Booth?