packetstormer has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks
I am looking over some code from a project I inherited. I am a little confused with a certain code block. Its OO and in a certain function the following simple line is written
$self->do_it("99")Now, in my limited perl experience I thought that this line would call a class method called "do_it", passing it $self as the first argument and "99" as the second. However, there is no mention of said method anywhere in the code (or on the system as a recursive grep shows)
With this in mind; am I missing something obvious? Is this line doing something different than what I am expecting?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $self->do_it("now") question
by choroba (Cardinal) on Jul 21, 2015 at 13:50 UTC | |
|
Re: $self->do_it("now") question
by stevieb (Canon) on Jul 21, 2015 at 13:54 UTC | |
|
Re: $self->do_it("now") question
by Laurent_R (Canon) on Jul 21, 2015 at 14:05 UTC | |
by packetstormer (Monk) on Jul 21, 2015 at 14:14 UTC | |
by Anonymous Monk on Jul 21, 2015 at 14:22 UTC | |
by stevieb (Canon) on Jul 21, 2015 at 14:19 UTC | |
by Laurent_R (Canon) on Jul 21, 2015 at 14:35 UTC | |
|
Re: $self->do_it("now") question
by clueless newbie (Curate) on Jul 21, 2015 at 18:54 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |