Re: cgi and inheritance

[email protected] (John SJ Anderson) Mon, 6 Oct 2014 06:41:33 -0700
Newsgroups perl.beginners.cgi
Message-ID <CABJ3DF8yuYArLFQTJTwGz8hOj2ytT46jeLDA+SOJVtY38Xt-QA@mail.gmail.com>
On Mon, Oct 6, 2014 at 6:33 AM, Patton, Billy <[email protected]> wrot=
e:
> I=E2=80=99ve recently inherited some code that hasn=E2=80=99t been touche=
d in over 5 years. It=E2=80=99s all cgi and OOPerl.
> I=E2=80=99ve ran across this one statement that I don=E2=80=99t understan=
d.
>
> $self->log->error(*)

That's calling the 'error()' method, on the result returned by calling
the 'log()' method, on the current object ($self).

You could also write that as:

    my $log =3D $self->log();
    $log->error(*)

(I'm assuming '*' is a stand-in for the actual arguments.)

chrs,
john.