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


in reply to Perl allows package names consisting entirely of colons

I'm more surprised about the package NAMESPACE BLOCK syntax which seems to be quite new.

Well hopefully the old Perl4 namespace separator (i.e. Single'Quote ) can't be used the same way ... ;-)

Cheers Rolf

Replies are listed 'Best First'.
Re^2: Perl allows package names consisting entirely of colons
by tobyink (Canon) on Nov 27, 2012 at 16:47 UTC

    It was introduced in Perl 5.14. Perl 5.12 also introduced package NAME VERSION. The two can be combined, a la:

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