in reply to Re^3: Problem with System() command in perl?
in thread Problem with System() command in perl?

it is working thanks but I dint understand the system call.

system('start "" "' . $calc . '"');

could you please help me out with that?

Replies are listed 'Best First'.
Re^5: Problem with System() command in perl?
by shadowsong (Pilgrim) on Oct 07, 2016 at 13:03 UTC

    ankit.tayal560 - type start /? in a windows command prompt for more information on what marto is trying to impart.

    basically there are 3 ways to start new processes in perl:

    • open - open (IN, "program.exe|") or die "couldn't start program.exe"
    • system - system('program.exe')
    • backticks or qx - qx(program.exe) or `program.exe`

    careful what you do when running programs that require external input from users, but in a nutshell what's happinging in system('start "" "' . $calc . '"'); is the same as system('program.exe arg1');

    Cheers,
    Shadowsong