Perl thinks it's the shell!by misterw (Acolyte)
|on Jun 02, 2005 at 04:21 UTC ( #462743=perlquestion: print w/replies, xml )||Need Help??|
misterw has asked for the wisdom of the Perl Monks concerning the following question:
Running on XP I type:
perl program.plat the console prompt and get the following
Can't exec /c/apps/pp3.exe at download.pl line 1.program.pl looks like this:
The shebang notation is there for cygwin. pp3.exe is a c program that translates cygwin paths to windows paths before calling the real perl interpreter. So that if I run the script from bash like this:
$ program.pl /c/some/path/orotherthen the right path (using windows path separators) gets through to the (activestate) perl interpreter
Which is all good, except (back to the original problem) why is perl.exe even looking at this line? As far as it's concerned it's a comment, right?
c:\Perl\bin\Perl.exe program.pland also double clicking program.pl in explorer and perl.exe seems to want to evaluate the shebang notation.
I'm sure this is not the normal perl for windows (or any platform) behaviour???
I have a bad feeling I'm missing something here...
20050502 Edit by ysth: change pre to code tags
Back to Seekers of Perl Wisdom