8 use IPC::MorseSignals qw/msend mrecv/;
12 die "fork() failed : $!";
14 my $s = mrecv local %SIG, cb => sub {
15 print STDERR "I, the child, recieved this from $_[0]: $_[1]\n";
18 print STDERR "I'm $$ (the child), and I'm waiting for data...\n";
22 print STDERR "I'm $$ (the father), and I'm gonna send a message to my child $pid.\n";
24 msend "This message was sent with IPC::MorseSignals" => $pid;