in reply to shebang and linux RH
You might try it with the "env" program trick:
#!/usr/bin/env perlIn the long run, putting perl or a link to it in a standard place like /usr/bin would be a better idea. If you can't do that, then editing the script to use the right shebang is still probably better than launching it via sh or env. If perl is in your path, it's a one-liner:
perl -i -pe '$_="#!`which perl`" if $.==1' your_script-sauoq "My two cents aren't worth a dime.";
|
|---|