Forum Moderators: phranque

Message Too Old, No Replies

Shebang portability

I need to make the #!/usr/bin/perl work in my windows box?

         

phoenix_fly

2:56 am on Jul 31, 2005 (gmt 0)

10+ Year Member



Hello my code friends

I am kind of desperate with this one. The story is I decided to replace Xitami with Apache in my development workstation and donīt have a clue of how to overcome this!

I am testing this simple script without success:

#!/usr/bin/perl -wT
print "Hi!";

As my perl (ActivePerl) is located in c:\perl\bin\perl.exe, the script WORKS FINE with this shebang:
#!/perl/bin/perl -wT
print "Hi!";

But this is not ok, because this shebang wonīt work in my host.

Iīve tried uncommenting the "ScriptInterpreterSource registry" line but this way it stops working even with the window-like shebang!
-> BTW, my .cgi files are set to open with NOTEPAD in explorer, you guys think this may be the problem? The 'cgi_auto_file' key in the registry is set to:
C:\WIN98\NOTEPAD.EXE "%1"

I could set it to c:\perl\bin\perl.exe (maintain the %1?) but I would miss the facility to open the cgis with Notepad for brief editings.

Any ideas, my friends? I am really stuck with this one.
Your help is my only hope now.

Thanks a lot

phoenix_fly