"Benoît chauvet" <[EMAIL PROTECTED]> schrieb... > > ----- Original Message ----- > From: "Ton Hospel" <[EMAIL PROTECTED]> > > rumor has it that it even works on windows. > > Unfortunately not... But many thanks for the effort. ;) > > I'm afraid that STDERR is difficult to redirect on some m$ platforms... (as > 'cmd 2>file' does not work under Win98 for instance, and gives an error > message). > > IFAIK, the only way to make it work with Perl is to use IPC::Open3 package, > but I didn't succeed to make it work... > I will investigate if it is possible to redirect the STDERR, even on > Win95/98...
What was that about not reinventing the wheel? The Games::Golf development team has been struggling with this very issue. I believe Amir Karger finally fixed it. Please look at the source of the module or better yet - use it! Regards, Steffen -- @n=(544290696690,305106661574,116357),$b=16,@c=' ,JPacehklnorstu'=~ /./g;for$n(@n){map{$h=int$n/$b**$_;$n-=$b**$_*$h;$c[@c]=$h}c(0..9); push@p,map{$c[$_]}@c[c($b..$#c)];$#c=$b-1}print@p;sub'c{reverse @_}