Re: Is this possible to override print() ?



On Tue, Feb 26, 2008 at 5:51 AM, Jenda Krynicky <Jenda@xxxxxxxxxxx> wrote:
snip
No need for source filters. All you have to do is to implement
whatever special behaviour you need for a tied (magical) filehandle
snip

That works for that file handle, but he/she is talking about replacing
all print calls in a set of scripts with a custom version. That means
there might be prints to stdout, stderr, and numerous files. He/she
was trying to avoid editing the source for each program (of course,
that is what a source filter does, but at least you only need to do it
once).

--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
.



Relevant Pages