in reply to Re: STDOUT changing descritpors (open, no =)
in thread STDOUT changing descritpors

Excellent... that seems to fix the STDOUT problem... but when I do that for STDIN it does not seem to work.
open(STDIN,"<&".fileno($c)) or die; print STDERR "STDIN: ",<STDIN>; print STDERR "\$c: ",<$c>;
gives me:
20040902 14:15:45 STDIN: 20040902 14:15:45 $c: fcl_userid=d4ants&fcl_password=hidden&referer=& +fcl_login_submit=Login
very strange. This I can deal with.. the STDOUT was the more important thing, STDIN would just be a nice thing to get working.

I had manged to get it working using POSIX::dup2 and POSIX::close... but this seems much nicer :)

Thanks!

                - Ant
                - Some of my best work - (1 2 3)