in reply to Re^2: Undefined subroutine - newbie problem
in thread Undefined subroutine - newbie problem
From perldoc -f use:
use Module VERSION LIST
use Module VERSION
use Module LIST
use Module
use VERSION
Imports some semantics into the current package from the named
module, generally by aliasing certain subroutine or variable
names into your package. It is exactly equivalent to
BEGIN { require Module; Module->import( LIST ); }
except that Module must be a bareword.
So you might try calling the import method for the package.
Alternatively, you can fully-qualify the call to include the package name, like: modules::gts::generate_throws_simple().
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Undefined subroutine - newbie problem
by blackhat (Novice) on Aug 14, 2012 at 12:01 UTC | |
by roboticus (Chancellor) on Aug 14, 2012 at 13:19 UTC |