in reply to Does perl have an equivalent to python's uhooker?

Just a thought.... to bring this back to Perl again.

IF you're talking about modifying data that is send() or exchanged via TCP/IP between two hosts, a proxy could be your choice. I haven't checked it myself, but Net-ProxyMod looks promising.