>I think the main problem on Win95/98 is capturing STDERR, isn't it? The
>module installation modules, ExtUtils::MakeMaker, have (or have had) the
>same problem.
>
>Redirecting to another file handle doesn't work. You need the file.
Not sure what you mean, here. I've been using this code in the
crossplatform AmphetaDesk [1], and it's been working fine (collecting
thousands of warnings from a Win32::GUI, IO:: kills, etc.):
# open our log file, turn on autoflush,
# and then return our selection to STDOUT.
open (LOG, ">$SETTINGS->{files}->{\"log\"}")
or die "Couldn't open $SETTINGS->{files}->{\"log\"}: $!";
select(LOG); $| = 1; select(STDOUT);
# redirect STDERR to our logfile.
open(STDERR,">&LOG") or
die "Couldn't redirect STDERR to $SETTINGS->{files}->{\"log\"}: $!";
[1] http://www.disobey.com/amphetadesk/
--
Morbus Iff ( softcore vulcan pr0n rulezzzzz )
http://www.disobey.com/ && http://www.gamegrene.com/
please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus