in reply to Using variables within use and package statement
use lib 'newpath'; use gui::skills_gui; use db::skills_db;
and remove "newpath::" from the package name.
Note that if the path is relative, it's relative to the current directory, which is not necessarily the same as the directory in which the script resides.
|
|---|