I am writing a Perl script that asks for some inputs and then eventually runs another script passing those inputs as arguments. That script I'm calling has print outputs that specify the % of how much processing is done as it goes through a foreach loop.
Currently I'm calling the other Perl script like this:
print `perl /path/to/script.pl -x 0990;`
This works fine, but only prints any output when that called script finishes... so for example, when that script finishes, the output I get is:
Status: 100% Completed
Done!
When I want to be getting the output of every % number.
Any possible solutions for this?
Thanks!