in reply to Re^2: Understanding a OOp code
in thread Understanding a OOp code

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

Replies are listed 'Best First'.
Re^4: Understanding a OOp code (updated)
by sachinz2 (Acolyte) on Sep 26, 2016 at 11:56 UTC
    Hi

    Thanks Friends

    Yes @Hauke there were 2 sub-routines.