On Thu, Sep 13, 2001 at 08:23:10AM -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?
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