How can I change the PERL shebang line. I want to emulate the webhost on my PC for testing and it's really troublesome that the two settings are not the same.
----------
I'm willing to trade custom scripts for... [see profile]
Open the script in notepad
Edit the 'shebang line'
Save the script
If your asking 'how do I emulate the shebang line that is required for unix under windows' the answer is 'you should not need to , your webserver should associate .pl files with your perl interpetor'.
So just change it locally, test and work on it and then before sending it back out put the proper shebang line in.
I must be missing your real question...
Are you really asking 'I have like 400 scripts with the unix shebang and I want to easily convert these to the win32 shebang'?
I can think of no automatic way to handle this. Your best bet is to write a perl script to parse all the perl files in the directory each way. Then you can automagically make them work locally and then automagically make them work remotely.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.