in reply to System calls

In windows, system calls can be done in two ways:
system("c:\\winnt\\system32\\calc.exe");
or
$output = `c:\\winnt\\system32\\calc.exe`;

NOTE: In windows you have to use double back slashes to get into the proper directories, or you can use forward slashes to replace them. (ie. c:/winnt/system32/calc.exe)

Replies are listed 'Best First'.
Re^2: System calls
by vek (Prior) on Jun 09, 2004 at 21:23 UTC

    You'll find that File::Spec is your friend and takes all the worry out of remembering about slashes, back slashes etc.

    -- vek --
      Who worries about it? I just do it!