in reply to Cron can't find a module in OSX

Put the output of this (untested)-

perl -le 'print q{PERL5LIB=}, join(":",grep /\w/, @INC)'

-into the top of your crontab. That way it'll have access to everything you do on the command line. It's also possible you have more than one perl installed. If you do, make sure the shebang line refers to the one you want or you can also set it as an environment variable.

(Update, corrected cut-off snippet.)

Replies are listed 'Best First'.
Re^2: Cron can't find a module in OSX
by Anonymous Monk on Sep 17, 2010 at 17:26 UTC
    print "$_ = $ENV{$_}\n" for grep /perl/i, keys %ENV;