Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: overriding print built-in

by grantm (Parson)
on Apr 12, 2006 at 01:51 UTC ( #542731=note: print w/ replies, xml ) Need Help??

in reply to overriding print built-in

While you can't override print, you may be able to achieve your desired result using a tie instead.

For example, Sprog uses this module to translate code like this ...

print @args;

... into code like this ...


Comment on Re: overriding print built-in
Select or Download Code
Re^2: overriding print built-in
by Fletch (Chancellor) on Apr 12, 2006 at 03:08 UTC

    Specifically you're going to be interested in the TIEHANDLE and related routines from perltie; and perhaps IO::Scalar or the like for inspiration.

Re^2: overriding print built-in
by jeremyh (Beadle) on Apr 13, 2006 at 17:12 UTC
    Thank you, this looks like it will work for what I want to do, which is to make a custom output formatting function send output from one server to another over an Oracle DB link, without touching the code of the custom output function.

    Thanks again,


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://542731]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2015-07-06 19:16 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (81 votes), past polls