in reply to Executing a program with in a perl script, and capturing the data in two ways
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 |