LogoopenSUSE Build Service > Projects
Sign Up | Log In

namespace::autoclean
http://search.cpan.org/dist/namespace-autoclean

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 over 8 years ago Download File
perl-namespace-autoclean.spec 1.63 KB over 8 years ago Download File

Comments for home:niner9:perl (0)

Login required, please login or signup in order to comment