in reply to Remote interpreter (redefining print())
Check out this for info about why you can't override print.
As for redirecting STDOUT to your socket, you'd probably want to use the dup form of open:
open STDOUT, ">& $fh" or die;.
Not totally sure if that will work for socket handles or not, and you most likely want to save a copy of the old STDOUT as well.
HTH.
Update: Oh, and for info on why your typeglob assignment might not be working, check out this node.
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (bbfu) Re: Remote interpreter (redefining print())
by no_slogan (Deacon) on May 08, 2001 at 01:49 UTC | |
by bbfu (Curate) on May 08, 2001 at 01:56 UTC |