in reply to Cannot find my own modules

Try:

use FindBin; use lib $FindBin::Bin; use basedat;

Update - Explanation: use basedat "$Bin/basedat"; is probably not doing what you want because it's just trying to pass the string "$Bin/basedat" to basedat->import() (see use), it's not telling Perl where to actually find the module. To do that, you need to modify @INC, which I'm doing above with FindBin and lib.

Replies are listed 'Best First'.
Re^2: Cannot find my own modules
by core_dumped (Acolyte) on Sep 11, 2018 at 20:05 UTC

    Thank you very much!

    Exactly what I needed to understand