in reply to environment variable question
I suspect that putting that in a BEGIN{} block before useing DBI will fix it. Otherwise, LD_LIBRARY_PATH is not set until runtime. That's too late for use.
After Compline,Zaxo