# I am trying to duplicate the STDIN as follows: # Why is it that the filehandle FH is empty? # How do I solve this? # The script is invoked as follows: # script_name.pl ) { print $inbuf; } while () { print $_; } close(FH) || die "Error closing FH: $!\n"; exit;