in reply to Re: PERL DBI Error when run from CRON
in thread PERL DBI Error when run from CRON

But the approach at RE (tilly) 3: Get default login environment should work even if you do something wacky or shell-specific. You would use it like:
%ENV = (get_login_env(), %ENV);