in reply to system() and output redirect

However, I don't know how to use ">file" in the second mode

Hi llancet

shell functionality is handled by the shell :) unless your program handles it

so to safely use the shell you might try String::ShellQuote , Win32::ShellQuote, Proc::Background, system_detached

or to handle it from your program you might try Capture::Tiny, IPC::Run3,

  • Comment on Re: system() and output redirect (IPC::Run3, Capture::Tiny, shellquote)