>exec ("wperl hang.pl >a.txt");
>exec ("wperl hang.pl >b.txt");
>exec ("wperl hang.pl >c.txt");
>
hi,
here I think you could fork the childs,and call the 'exec' in childs,it should
be good for your purpose.
for example,
for (my $i=0;$i<3;$i++){
my $child = fork();die "can't fork $!" unless defined $child;
exec ("wperl hang.pl >$i.txt") unless $child;
}
hope this help.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>