in reply to Re^6: Continuous or timed?
in thread Continuous or timed?

In the shared hosting environment I am used to, '.' is included in @INC. Without recompiling Perl - which I am not going to attempt! - or including use lib '.';, what is the best way to use modules I have created in a way that works from both CLI and cron?

Are you suggestion I use an absolute path in the use statement?

Update...

I've just realised you meant to use an absolute path in use lib '/path/to/modules/';

I'm obviously having a senior moment today!

Replies are listed 'Best First'.
Re^8: Continuous or timed?
by stevieb (Canon) on Dec 14, 2020 at 17:19 UTC

    See the second half of my updated post here for the best way to manage the use lib '.'; problem.