N
nahum_barnea
Hi.
In my perl script I need to run a software that give output to standard
output.
I need to count the lines of that output.
If I wanted to do it in csh I would do
set a = `sw-tool .... | wc -l`
But I wonna do it with perl and it seems there is no mechanism such as
` ... ` ?
for example
$a = `system "sw-tool | wc -l`;
does not work properly.
is there any clean perl solution except for using temporary file and
reading it?
thankX
NAHUM
In my perl script I need to run a software that give output to standard
output.
I need to count the lines of that output.
If I wanted to do it in csh I would do
set a = `sw-tool .... | wc -l`
But I wonna do it with perl and it seems there is no mechanism such as
` ... ` ?
for example
$a = `system "sw-tool | wc -l`;
does not work properly.
is there any clean perl solution except for using temporary file and
reading it?
thankX
NAHUM