if you whant to send an input to an external program and trap the output
the you need IPC::Open2 (perldoc IPC::Open2)
the error message you posted suggest your program interpretes command line arguments as
names of file to open
however a vast majority of programs
also works with input from STDIN so IPC::Open2 should work...