We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
But be careful, sometimes namespace::autoclean doesn't work as one would think.
tl;dr: namespace::autoclean relies on Class::MOP::Class::get_method_list to get the list of methods and removes everything else from the namespace. Unfortunately, the subroutine lists e.g. constants imported from the POSIX module. So, using namespace::clean, which is more explicit, might be cleaner (no pun intended).
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In reply to Re: can has ELI5 namespace::autoclean pls?
by choroba
|
|