in reply to use lib "."

use lib '.'; will use the current working directory (possibly /) and not the script path. I'd suggest setting DOCUMENT_ROOT in your crontab.

Good Day,
    Dean

Replies are listed 'Best First'.
Re^2: use lib "."
by Dallaylaen (Chaplain) on Aug 14, 2023 at 10:02 UTC
    DOCUMENT_ROOT in crontab has a huge astonishment potential. Better just set PERL5LIB there if relying on environment variables is completely inevitable...