in reply to
Redirecting output
Error solved. The directory $outpath was not being created but was created later in my code, so STDERR did not always get redirected. STDOUT was then not redirected because STDERR is now a closed file handle.
Comment on
Re: Redirecting output
Replies are listed 'Best First'.
Re^2: Redirecting output
by
FunkyMonk
(Bishop)
on Jul 18, 2007 at 23:07 UTC
And that just goes to show the value of checking open for errors...
open ... or die "couldn't open XYZ: $!";
[download]
[reply]
[d/l]
In Section
Seekers of Perl Wisdom