in reply to Re^3: use lib and use autouse 'module'
in thread use lib and use autouse 'module'
give a runtime error? When I tested this syntax in my perl script, It gave a message saying - Empty compile time value given to use lib. But then when I created the include directory, and calleduse lib $g_moduleDir;
it loaded the module and gave me access to all the functions and variables defined in the module. I noticed that this is not possible in autouse since we would have to specifiy all the functions and variables in the qw(). Appreciate your comments.require MY_MODULE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: use lib and use autouse 'module'
by Hue-Bond (Priest) on Jul 29, 2006 at 12:48 UTC | |
by sshivell (Initiate) on Aug 22, 2006 at 17:51 UTC |