|Come for the quick hacks, stay for the epiphanies.|
Understanding a OOP Code: Package declared within a Packageby sachinz2 (Acolyte)
|on Oct 06, 2016 at 11:49 UTC||Need Help??|
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.