Forwarded Message Message-ID:<[EMAIL PROTECTED]>To:[EMAIL PROTECTED]:"maxchen" <[EMAIL PROTECTED]>Subject:using pipeDate:Sat, 14 Dec 2002 02:11:10 +0800
hi everyone,i am a novice to the perl and i want towrite a perl program to redirect anotherprogram's STDIN & STDOUT to pipes,it's possible or there are source examplesexist?thanks,maxchen to redirect STDOUT: open IN,"programname |" or die $!; you can then read from it as any other normal filehandle. to redirect from STDIN: open OUT,"| programname" or die $!; you can then write to it using print OUT,"what you want to wrtite"; In both cases, note the use of |. perldoc perlopentut for more. cheers Image by FlamingText.com --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now