LogoopenSUSE Build Service > Projects
Sign Up | Log In


When you import a function into a Perl package, it will naturally also be available as a method.
The namespace::autoclean pragma will remove all imported symbols at the end of the current package's compile cycle. Functions called in the package itself will still be bound by their name, but they won't show up as methods on your class or instances.
This module is very similar to namespace::clean, except it will clean all imported functions, no matter if you imported them before or after you used the pragma. It will also not touch anything that looks like a method, according to Class::MOP::Class::get_method_list.

Source Files

Filename Size Changed Actions
namespace-autoclean-0.09.tar.gz 10.7 KB Download File
perl-namespace-autoclean.spec 1.63 KB Download File

Comments for home:niner9:perl (0)

Login required, please login or signup in order to comment