Yes, the problem is something else... basically it is how to find a file relative to a .pm file
From within the module,
use Cwd qw( realpath ); use File::Basename qw( dirname ); use File::Spec::Functions qw( catdir ); my $module_dir_qfn = dirname(realpath(__FILE__)); my $db_dir_qfn = catdir($module_dir_qfn, 'db');
Update: Updated to use OP's dir name.
In reply to Re^3: XP and slashes?
by ikegami
in thread XP and slashes?
by hsmyers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |