laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Indeed, Local:: is the namespace you should use for local things. There are a handful of modules in this namespace if you search CPAN, but if you look closely they're mostly in "examples" directories, not in "lib", so will usually not get installed. local::lib and some of its friends are unfortunate. Technically they're not violating the rule, but on case-insensitive filesystems they might as well be. If you have a CPAN ID yourself, you can always use your own CPAN ID (in all caps) as a namespace. Many people regard that as a namespace that 100% belongs to the owner of the CPAN ID. That is, I could release a module called TOBYINK::Monkey, but for anyone else to do so would be outrageous.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In reply to Re: Namespace for local/internal modules?
by tobyink
|
|