in reply to exec, system, or backticks
instead of the shell redirection.$key = `$sxwbt_dms $item`
But that depends on if you need the entire results, or you want to process it line by line. It is just yet another way to read output from a program, but since it hasn't yet been mentioned, and has the advantage of line-by-line processing, I thought I'd mention it.open(SWBT, "$swbt_dms $item |") while(<SWBT>) { process_line($_); }
|
|---|