in reply to Re^2: Understanding a OOP Code: Package declared within a Package
in thread Understanding a OOP Code: Package declared within a Package
The same basics apply.
The number of elements in the name doesn't matter, it is still just a name.
Any 'relationship' between packages with the same prefix is implied -- for human consumption only -- they are entirely independent as far as Perl is concerned.
Those packages with the statement use Base (X::Y::Z) at the top, are subclasses of the named package, which does define an OO relationship between them, such that the subclassing package (those with use Base ...), inherit (or overide) all the code (functions/methods) from the named base package.
|
---|