|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
override prototypeby Random_Walk (Parson) |
| on Jan 25, 2010 at 16:16 UTC ( #819525=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Random_Walk has asked for the
wisdom of the Perl Monks concerning the following question:
Wise monks, and the rest ;) I have a logging routine from a supplier that has the prototype ($$). The first parameter is the log level, the second the message to log. I am overriding this sub already to add a debug feature and all is good. Now I would like to change the prototype to ($@) and then convert the @ with a join before calling the original logger.
of course now I get the error Prototype mismatch. Is there a way to do this or should I just behave and use a new name for my new logger? Thanks,
Pereant, qui ante nos nostra dixerunt!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||