in reply to Re^2: Windows: system() and PAUSE
in thread Windows: system() and PAUSE

Maybe you have another version of cmd.exe in your path? Try using %comspec% - that works for me on Windows XP and 7.
C:\>perl -we "system('%comspec% /c pause')" Press any key to continue . . .

Replies are listed 'Best First'.
Re^4: Windows: system() and PAUSE
by rovf (Priest) on Apr 09, 2010 at 11:59 UTC
    Maybe you have another version of cmd.exe in your path?
    No, only one. Checked with WO.EXE.

    -- 
    Ronald Fischer <ynnor@mm.st>