in reply to Why must LD_LIBRARY_PATH be defined outside script for DBD::Oracle?
BEGIN { $ENV{LD_LIBRARY_PATH} = "$ENV{DIR}/oracle_instantclient" }
Has $ENV{DIR} been set correctly ?
I would include, inside that BEGIN{} block, a check to verify that $ENV{LD_LIBRARY_PATH} has in fact been set to its expected value - and have the script die() if the check fails.
Cheers,
Rob