Ok, so I have an IO::Socket handle connected to a port on a machine and I have a program on my local machine, now I want to put the output from the socket to the input of the program and the output of the program to go to the input of the socket. In other words, pipe them together transparent to the local program running on the local machine. So my question is whats the best way todo so (theres a few methods out there I have seen). please feel free to post example code to demonstrate your point :)
Snippets of code should be wrapped in
<code> tags not<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).