in reply to formatting output from system call

You could parse the output of qx:
qx(./visacmd.exe /a=USB::0x0699::0x0368::C010731::INSTR /c=MEASU:IMMED +:VALUE?);