in reply to perl, open and pipe

IPC::Run3 might be simplest