open SYS,"| windows_exe_file.exe" or die ...; print SYS "EXPORT this and that to thisFile.dat"; print SYS "\e"; close SYS; my @data = do{ open IN, 'thisFile,dat'; local $/; };