On Tue, Apr 8, 2008 at 12:24 PM, Jonathan Mast <[EMAIL PROTECTED]> wrote: > I know this seems to be a very basic question, but I cannot figure out how > to access a modules subroutines. > > We a module named FOO::BAR in which we access some hashes using this form: > $FOO::BAR::hash1 > and it works fine. > > When I try to access a subroutine in that same module, using this form: > $var1 = $FOO::BAR::sub1(); > it doesn't work! > > Any ideas? >
In addition to the direct calling method the others have pointed out, you can also import functions from a module if the module uses the Exporter* module or other related modules**. * http://perldoc.perl.org/Exporter.html ** see the See Also section of the Exporter documentation -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/