http://www.perlmonks.org?node_id=104752


in reply to Crontab entry for Perl script

On (at least some variants of) Unix you can set up environment variables at the top of your crontab file:
% crontab -l
PERL5LIB=/home/echo/modules
1 * * * * /home/echo/script.pl