in reply to Modifying %ENV From The Shebang Line

Why? Why not just use
#!/usr/bin/perl BEGIN { $ENV{LD_LIBRARY_PATH} = '/my/lib'; } ...

Replies are listed 'Best First'.
Re^2: Modifying %ENV From The Shebang Line
by moritz (Cardinal) on Dec 17, 2007 at 22:33 UTC
    Because, from the OP's description, perl doesn't load at all without the proper environment variables. So any adjustment to the environemnt must be made before perl starts.
Re^2: Modifying %ENV From The Shebang Line
by williams (Beadle) on Dec 17, 2007 at 22:35 UTC
    That was the last of the solutions I posted. I get unresolved references from the use lines of the Subversion modules at startup. Everything works fine when $LD_LIBRARY_PATH includes where those libraries are installed.

    Thanks,

    Jim