edherrin has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to access a module subroutine from another module. I can access the subroutine fine from a script (test.pl) using: 'use foo.pm;' 'foo->do_something;' But I can't call the same subroutine from another module (foo2.pm) Any suggestions.

Replies are listed 'Best First'.
Re: Module subroutines
by chromatic (Archbishop) on Feb 25, 2005 at 17:32 UTC

    Use the module in the other module.

    If that doesn't help, please post a minimal example of both modules with sample output of what you expect to happen and what does happen.