Try the command perldoc -l Image::Grab to show you where the module got installed, I'm guessing that that path isn't one of the @INC directories listed at the top of your post. Setting the right PATH isn't always enough if you've got custom entries added to @INC via something like the PERL5LIB environment variable, because then that environment variable needs to be set in the environment that cron provides to the programs it runs. I'm still just guessing, but probably that isn't the case and the environment provided by cron is different from the one you have on the command line. For example, are you using local::lib? If you want to see the difference, try running this command from both the command line and from a crontab entry: perl -le 'die "$ENV{PERL5LIB} @INC\n"'
If those are different, then it depends on how you're changing @INC for the best way to solve this. If you could report back with the results of the above, we can probably help more.
In reply to Re: Perl app won't compile /run from cron
by haukex
in thread Perl app won't compile /run from cron
by dazz
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |