Hello Michael,
I tried to duplicate your error, but was unable to. This is my test script
which is modelled on your origninal script:
#!/usr/bin/perl -w
use strict;
foreach my $foo qw(a b) {
print "$foo\n";
system ("echo hi $foo");
print "hello $foo\n";
print "----\n";
}
Regardless of whether I redirect to a file or terminal, I get the same output:
a
hi a
hello a
----
b
hi b
hello b
----
If you run this test script, what results do you get?
Regards,
- Robert
At 08:23 AM 9/13/2001 -0600, Michael Burnside wrote:
>Using the code below works great if STDOUT is the terminal, but
>when trying to pipe it to a file the two system() functions run
>first and the print() statements run second, illustrated below as well.
>Anyone have a clue why?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]