J
jonathan
hey all,
just curious, but if I do the following (after __cut__), does this
have any repercussions for the 'regular' STDERR, STDOUT handles?
jon
__cut__
sub redirect
{
local(*STDERR);
local(*STDOUT) = *STDERR;
open(STDERR, "> /tmp/logit");
print STDERR "HERE!!!\n";
print STDERR "HEREA!!!\n";
close(STDERR);
}
redirect();
print STDERR "HEREB!!!\n";
print STDOUT "HEREC!!!\n";
just curious, but if I do the following (after __cut__), does this
have any repercussions for the 'regular' STDERR, STDOUT handles?
jon
__cut__
sub redirect
{
local(*STDERR);
local(*STDOUT) = *STDERR;
open(STDERR, "> /tmp/logit");
print STDERR "HERE!!!\n";
print STDERR "HEREA!!!\n";
close(STDERR);
}
redirect();
print STDERR "HEREB!!!\n";
print STDOUT "HEREC!!!\n";