This way works
open(my $FH, 'script.sh |') or die ...;
while (my $line = <$FH>) {
...
}
close($FH);
On 6/9/05, Tielman Koekemoer (TNE) <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> Is there a way you read input from a script line by line. I'd rather
> parse output line by line than do: @out = `script.sh`; which seems
> sloppy. Or is that the best way?
>
> TIA
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>