http://www.perlmonks.org?node_id=1005858


in reply to Re: Perl allows package names consisting entirely of colons
in thread Perl allows package names consisting entirely of colons

I'm not entirely sure what I'd expect. warnings checks (sometimes at compile time, sometimes at run time) and warns about far less weird stuff, at cost.

There would seem to be very little penalty in at least disallowing the package ::::::; syntax the same as package 123 is already disallowed, even if symbols in these packages can still be created by symbol table hackery.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'