in reply to Using piped I/O?

Start at perldoc open read until Using open() for IPC then read at Using open() for IPC, and remember you're working with a shell, helps to know how to work with your shell