Sounds like IPC::Open2 would help you.
In reply to Re: Use text string as stdin for system process by kyle in thread Use text string as stdin for system process by baldywilson