freebsd-ports/devel/p5-namespace-sweep/pkg-descr
Anton Berezin ae9d9a9110 Add devel/p5-namespace-sweep 0.006, a Perl module to
sweep up imported subs in your classes.
2013-01-14 11:37:27 +00:00

9 lines
493 B
Text

Because Perl methods are just regular subroutines, it's difficult to
tell what's a method and what's just an imported function. As a result,
imported functions can be called as methods on your objects. This pragma
will delete imported functions from your class's symbol table, thereby
ensuring that your interface is as you specified it. However, code
inside your module will still be able to use the imported functions
without any problems.
WWW: http://search.cpan.org/dist/namespace-sweep/