in reply to Perl/Tk Unix Question
See IPC::Open2. It allows you to execute a command piping you its stdin & stdout.
Careful with that hash Eugene.