markcsmith has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks,
I would like to write scripts that are more portable across different machines w/ different locations for the perl interpreter. Can I replace the line:
#!/usr/bin/perl
with something that will find the interpreter, then evaluate that location so as to invoke it? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: portable interpreter invocation
by perrin (Chancellor) on Mar 11, 2003 at 20:30 UTC | |
by Aristotle (Chancellor) on Mar 15, 2003 at 12:56 UTC | |
|
Re: portable interpreter invocation
by dws (Chancellor) on Mar 11, 2003 at 20:23 UTC | |
|
Re: portable interpreter invocation
by bronto (Priest) on Mar 12, 2003 at 10:25 UTC | |
|
Re: portable interpreter invocation
by IlyaM (Parson) on Mar 11, 2003 at 23:53 UTC |