Given a CGI Perl script(.pl) running on a remote Apache/1.3.26 (Unix) server that needs to have the Perl script starting with
#!/usr/bin/perl -w...
and my local server is running Apache/1.3.26 (Win32) mod_perl/1.26_01-dev and needs to see a script(.pl) starting with
#!c:/perl/bin/perl.exe -w...
Question: Is there some way to map the Perl interpreter in Apache 1.x so I do not have to keep editing the shebang (#!) line before uploading the file? (Yes, a bit off topic, but not far from the beaten path :-) As you might guess, I have shot myself in the foot once too often forgetting to change the shebang before uploading and changing it back before continuing to work on the local server.
Qualifier: I prefer an Apache based solution rather than say a Perl-based Net::FTP script performing the mapping during the upload as I prefer to use a drag-and-drop interface to upload the files. This will also hopefully give rise to a more general solution for supporting multiple remote servers wherein the Perl executable does not always live in the same place, e.g. /usr/bin/perl, /usr/local/bin/perl, etc. TIA!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.