sachinz2 has asked for the wisdom of the Perl Monks concerning the following question:
I am working on some OO perl script, which was written by some other user, also, I am new to OO perl, There is this line of code Which I am not able to understand
Please if some one can shed some light , It will be a help, below is the code
sub LicenseData{ my ($lic) = @_; my $hash = LIC_INFO($lic); return $hash->LicenseData(); }
Here LIC_INFO is another sub-routine which returns some data, so.. $hash has some Info in it(I checked with 'print Dumper $hash'). But I am not able to understand what '$hash->LicenseData()' does, and when I did 'print Dumper $hash->LicenseData()' it is giving "undef"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Understanding a OOp code
by choroba (Cardinal) on Sep 26, 2016 at 08:58 UTC | |
|
Re: Understanding a OOp code
by GrandFather (Saint) on Sep 26, 2016 at 08:58 UTC | |
by sachinz2 (Acolyte) on Sep 26, 2016 at 09:23 UTC | |
by haukex (Archbishop) on Sep 26, 2016 at 10:17 UTC | |
by sachinz2 (Acolyte) on Sep 26, 2016 at 11:56 UTC | |
by GrandFather (Saint) on Sep 26, 2016 at 19:52 UTC |