in reply to Re^2: PATH is not setting - PERL (LD_LIBRARY_PATH)
in thread PATH is not setting - PERL
You can replace 'env' with $^X and hope your dynamic loader doesn't notice that the perl executable is exec'ing the perl executable, like happens on some systems.
There are also lots of less 'tricky' ways that don't have this problem. For example, have a shell script (or ".bat" file) wrapper that calls your Perl script.
"env:this is not a file or a directory"
Oh, I just realized that this is probably not a copy'n'paste of the actual error message but more likely a bad hand copy job and the real error is closer to:
env: yourscript: No such file or directory
which means that exec 'env', $^X, $0, @ARGV; will likely work.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: PATH is not setting - PERL (env)
by gregor-e (Beadle) on Feb 07, 2008 at 00:24 UTC | |
by dcblack (Initiate) on Dec 17, 2009 at 19:43 UTC | |
by Anonymous Monk on Feb 24, 2010 at 14:30 UTC | |
|
Re^4: PATH is not setting - PERL (env)
by srini_sun (Initiate) on Oct 16, 2007 at 03:52 UTC |