Re: cgi and inheritance
[email protected] Wed, 8 Oct 2014 02:29:53 -0400 (GMT-04:00)
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <26984829.1412749794189.JavaMail.root@wamui-hunyo.atl.sa.earthlink.net> |
I haven't seen any PErl code with ->log-> like that before. I've only seen = code like that with =3D error(*). -----Original Message----- >From: "Patton, Billy" <[email protected]> >Sent: Oct 6, 2014 9:33 AM >To: "[email protected]" <[email protected]> >Subject: cgi and inheritance > >I=E2=80=99ve recently inherited some code that hasn=E2=80=99t been touched= 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 understand= . > >$self->log->error(*) > >I know the self >and I=E2=80=99ve traced the error to CGI::Application through inheritance. >But it=E2=80=99s the ->log-> that has me confused. >I have no class named log >I find no place that is does a new on log anywhere in the family tree. >I cannot find any log class anywhere in the family tree of inheritance. > >Is this just a method of using a perl hash that I=E2=80=99m not familiar w= ith? >Could it be rewritten as=20 >$self->{=E2=80=98log=E2=80=99}->error(*); > >Using perl 5.16.2 >on MAC 10.9.5 >-- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] >http://learn.perl.org/ > >