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

penguin_asylum has asked for the wisdom of the Perl Monks concerning the following question:

Hey. Could someone explain to me how to use pipes?
I know it seems like the type of thing I should just google, but I've looked all over and can't find a good explanation.

If I have:

if($pid = fork) {
#parent
} else {
#child
}
how would I use pipes to send messages from the parent to the child and vice verca? Thanks.