in reply to Perl Library failure

What debugging effort have you done so far? Without any code and only a symptom description I can only stab into the fog. Are subshells spawned whilst invoking your perl process? If so, the environment variables might be reset. Dumping your environment variables to STDOUT before and after sourcing your perl library might give a hint:
warn "$_ => $ENV{$_}\n" for sort keys %ENV;

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}