# Code where sub is defined: use Exporter(); my @ISA = qw/Exporter/; my @EXPORT = qw/&getData/; sub getData { # do stuff # return a hash } # Package declarations - none, that I'm aware of. Never # had this problem before, using &Reader::getData and the # like. # Failing call: use Book::Reader; my $hashref = &Book::Reader::getData;
In reply to Re: Re: Calling a sub in a Module
by Tanalis
in thread Calling a sub in a Module
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |