in reply to Executing a program with in a perl script, and capturing the data in two ways

How about something like this:
open F,"somecmd |" or die "error spawning command $!"; my $data=''; while(<F>){ $data.=$_; print; } close F;

Replies are listed 'Best First'.
RE: Re: Executing a program with in a perl script
by Anonymous Monk on Aug 15, 2000 at 23:35 UTC
    Thanks that worked great. I did see something like this before but the explaination of what it does did not match what I was looking for. Once again thank you.