I'm trying to set the LD_LIBRARY_PATH within my script, because the account that will run the script won't have the environment setup correctly.
#!/sw/perl5.6/bin/perl -I. -w
use Env qw(@LD_LIBRARY_PATH);
push @LD_LIBRARY_PATH, "/usr/local/sybase/lib";
This does not work and I receive an error that perl cannot load the library. It's the right path - if I set my environment's LD_LIBRARY_PATH to that, the script doesnt complain. Running on SunOS 5.7...