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


in reply to Child process reading <STDIN> from parent

open my $pipe, "| $script" or die "Can't fork to run $script: $!\n"; print $pipe $input; close $pipe

- tye        

Replies are listed 'Best First'.
Re^2: Child process reading <STDIN> from parent (open)
by rjohn1 (Sexton) on Oct 16, 2013 at 07:30 UTC
    Thanks tye, this is what i wanted. Though i tried something on the same lines before posting, but this simply worked.