At 1:33 PM +0000 4/29/02, Alan Drew wrote: >I am using perl to pipe commands to a compiled binary (long story - >35,000 lines of badly written fortran, with an equally badly written >user interface - and not written by me!). I am using Filehandle to >open the pipe in perl, but there are occasions when I want to >restart the binary (i.e close the pipe and open it again) without >restarting the perl script. I am a relative newbie to perl, so >please don't get too upset if the answer is an easy one! >Al.
$fh->close(); and then do whatever you did to open it the first time again. Is that what you mean? -- Kee Hinckley - Somewhere.Com, LLC http://consulting.somewhere.com/ [EMAIL PROTECTED] I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.