Exporting doesn't mean what you think it does, at least not in Perl. To export is to remove the requirement to use a fully qualified name.
What you really want, it seems, is to make a function uncallable from outside of {something}. (A namespace? Code that originated from a certain file?) Perl doesn't provide any direct means of doing that. Perl considers this a documentation issue. If a user of your module disreguards your documentation and call a function he shouldn't, it's his own foot he's shooting.
Many programmers prepend an underscore (_) to the name of their private subs/methods as an indication that they shouldn't be called.
In reply to Re^3: Using Exporter module
by ikegami
in thread Using Exporter module
by perlCrazy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |