[Melbourne-pm] overloading 'print'

Simon Taylor simon at unisolve.com.au
Thu Mar 16 21:44:14 PST 2006

Hello Matthew,

> I have a situation where I would like to overload the 'print' and
> 'printf' functions, so that I can do some translation stuff in them.  I
> would have expected something like this to work:


> Does anone know how to overload 'print'?

Have you seen the section "Overriding Built-in Functions"
in the perlsub perldoc page?

Hope this helps,

Simon Tylor
Unisolve Pty Ltd - Melbourne, Australia
+61 3 9568 2005

More information about the Melbourne-pm mailing list