in reply to Undefined Subroutine Called
I'm a bit unclear on what your actual file structure is. If you put something into a module, you need to use that module afterwards. Perl will not automatically load a module for you, you have to tell Perl that it should load a module.
If I may interpret your scenario, it might be that the first piece of code lives in a file called ClanBotFire.pm, and the second piece of code is your "main program" in which you want to use the aforementioned subroutine. Then you will need to load that module in your main program, via the use statement.
As a general approach when seeking wisdom, showing us the exact, verbatim error message is usually far better than some vague description of some keywords that you remember from the error message.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Undefined Subroutine Called
by jdetloff (Acolyte) on Jan 24, 2010 at 21:46 UTC |