open F,"somecmd |" or die "error spawning command $!"; my $data=''; while(<F>){ $data.=$_; print; } close F;
In reply to Re: Executing a program with in a perl script
by lhoward
in thread Executing a program with in a perl script, and capturing the data in two ways
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |