in reply to Non-Interactive Inputs

If you need to capture the output of the script, IPC::Run3 might be the simplest solution.

If you don't, open(my $to_chld, '|-', $prog, @args) is probably the simplest solution.