http://www.perlmonks.org?node_id=1058401


in reply to Re: Child process reading <STDIN> from parent (open)
in thread Child process reading <STDIN> from parent

Thanks tye, this is what i wanted. Though i tried something on the same lines before posting, but this simply worked.