in reply to adding libs in a setuid-perl script

The script works without the suid-bit, so the file exists and can be found, but the library containing the file isn't searched.
I think that's because in modern Perls, running with the suid bit set enables tainting. Which means that it only searches in the directories set when perl was compiled. You may want to add a
use lib "/usr/local/test/lib/perl5/site_perl/5.12.1";
before using any Sybase module.