in reply to Modifying %ENV From The Shebang Line
This has always worked for me...#!/usr/bin/perl -I/path/containing/my_modules use My::Module; # should load /path/containing/my_modules/My/Module. +pm
UPDATE: Sorry, I see that I have misunderstood the question. Having checked the man page for "env", I would have expected the use of LD_LIBRARY_PATH=/some/path to work. Then again, I'm looking at a freebsd man page for this utility, and it looks like its behavior may differ according to your OS (in particular, "env"s behavior changed between freebsd 5.6 and 6.0, for example...) Maybe you need to use "/usr/bin/env -S ..." to get things to work as expected? (Maybe the "-S" option is peculiar to freebsd? I don't know.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Modifying %ENV From The Shebang Line
by williams (Beadle) on Dec 17, 2007 at 23:43 UTC |