Not exporting a sub doesn't prevent it from being called. Exporting simply allows you to do sub() instead of doing Module::sub(). Functions which aren't imported can still be called
Perl doesn't provide a means of making a function uncallable from outside of a namespace. There are ways of making it harder to call a function, but most programmers are satisfied to signal that a function is for private use by prepending an underscore (_) to its name.
Update: By the way, it's totally useless to export methods unless they can also be called as functions. It looks to me like you don't need Exporter at all.
In reply to Re: Using Exporter module
by ikegami
in thread Using Exporter module
by perlCrazy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |