http://www.perlmonks.org?node_id=858022


in reply to Re^2: adding libs in a setuid-perl script
in thread adding libs in a setuid-perl script

If you need that setting of LD_LIBRARY_PATH, it won't have any effect, as you set it at run time, while the use happens at compile time. Try this instead:
BEGIN { $ENV{LD_LIBRARY_PATH} = "...your path goes here..."; }