|
Posted by Jürgen Exner on May 4, 2008, 9:37 am
Please log in for more thread options
>In slave perl prog, there're some print codes.
>However, when the master perl calling the slave one by system(command), the
>slave perl print cannot be redirected to STDOUT. how to solve that?
I cannot reproduce your problem:
C:\tmp>type master.pl
use strict; use warnings;
system 'slave.pl';
C:\tmp>type slave.pl
use strict; use warnings;
print "Slave here\n";
C:\tmp>master.pl
Slave here
Obviously the slave program prints to STDOUT just fine.
Please provide a minimal program that demonstrates your problem.
jue
|