in reply to Redirecting STDIN / STDOUT after fork

The usual way is to close STDIN in the process which doesn't need it.
Do you really need 2 diferent STDIN ?

anyway, to play with filehandle use TYPEGLOB:
$variable=*FILEHANDLE; print $variable "things to be printed\n";
or open with the mode '&' (from the cookbook)
open(OLD_OUT,">&STDOUT"); #save curent STDOUT to OLD_OUT open(STDOUT,">/tmp/file.out"); #reassign STDOUT to /tmp/file.out close STDOUT ; open(STDOUT,">&OLD_OUT"); #restore the previous STDOUT
Or use local as gloom suggested.