sachinz2 has asked for the wisdom of the Perl Monks concerning the following question:
I am working on some Object Oriented perl code, which is Written by some other person,
In the Code , I found , a (actually more then one) Package, being declared in another Package.
The Original Package, is a pb(protocall buffer) package, and, then there are more Packages declared in the same code, to address error handling.
The other packages are not called anywhere outside the main Package
======================================Now my question is... I do not understand if this is possible.. if yes ,, what is the logic behind it? How does the perl Interpreter Understands this code(because I know it is working), How do I understand it. Unfortunately there is no other perl person here, to look up to.
Thanks
Sachin
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Understanding a OOP Code: Package declared within a Package
by haukex (Archbishop) on Oct 06, 2016 at 12:21 UTC | |
Re: Understanding an OOP Code: Package declared within a Package
by Athanasius (Archbishop) on Oct 06, 2016 at 12:20 UTC | |
Re: Understanding a OOP Code: Package declared within a Package
by BrowserUk (Patriarch) on Oct 06, 2016 at 12:14 UTC | |
by sachinz2 (Acolyte) on Oct 06, 2016 at 12:29 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2016 at 12:37 UTC | |
by Phenomanan (Monk) on Oct 06, 2016 at 13:10 UTC | |
Re: Understanding a OOP Code: Package declared within a Package
by sachinz2 (Acolyte) on Oct 07, 2016 at 08:30 UTC |