#!/usr/bin/perl -w use strict; if (my $pid = open(READ, "-|")) { print "child said: '", , "'; ",time,"\n"; print "child said: '", , "'; ",time,"\n"; } else { print "hello; ",time,"\n"; sleep 2; print "how are you; ",time,"\n"; }