Hi sachinz2,
the objective(logic) behind calling the same sub-routine
It's possible likely there are two subs with the name LicenseData in different packages (classes). Inside the sub, you could try doing print __PACKAGE__, " / ", ref($hash), "\n";, that will print the current package and the package of $hash (more specifically, the package that $hash is blessed into, or in OO terminology the object's class).
Otherwise, if there's only one sub LicenseData, then this would indeed be a recursive call, and the next call to LicenseData would receive in its $lic parameter the $hash value of the caller. How the recursion ends depends on what LIC_INFO is doing.
Update: Actually, what I wrote above about there being two (or more) sub LicenseDatas is much more likely, since I don't see a clean way for the recursion to end if there's only one sub LicenseData.
Hope this helps,
-- Hauke D
In reply to Re^3: Understanding a OOp code (updated)
by haukex
in thread Understanding a OOp code
by sachinz2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |