Should work with OO. But.. if the output doesn't show up, perhaps the print goes to a different filehandle?
open(O,">","/dev/null");
select O;
my $fh = select STDOUT;
warn "fileno is ",fileno($fh),"\n";
select $fh;
print 'text';
__END__
fileno is 3
If you want to print to STDOUT and the fileno reported isn't 1, there's the problem.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|