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.
In reply to Re: Cannot find my own modules
by haukex
in thread Cannot find my own modules
by core_dumped
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |