S
Steve
Are there any clever ways of dealing with portability of the "shebang"
line... when moving Perl scripts across machines (and across operating
systems), where the path to Perl may be different?
For instance, I'm stuck doing initial development of some CGI scripts
on a Windows machine, but then deploying them to a *nix Apache server.
For each script, I'm manually cut-n-pasting to replace the:
#!"c:/perl/bin/perl.exe"
... with:
#!/usr/bin/perl
I was about to put together a script that would parse all my files and
change the shebang line programmatically, but before doing so I wanted
to see if anyone else had a more elegant approach in their own environment.
line... when moving Perl scripts across machines (and across operating
systems), where the path to Perl may be different?
For instance, I'm stuck doing initial development of some CGI scripts
on a Windows machine, but then deploying them to a *nix Apache server.
For each script, I'm manually cut-n-pasting to replace the:
#!"c:/perl/bin/perl.exe"
... with:
#!/usr/bin/perl
I was about to put together a script that would parse all my files and
change the shebang line programmatically, but before doing so I wanted
to see if anyone else had a more elegant approach in their own environment.