http://www.perlmonks.org?node_id=1041241


in reply to Re^2: system sub routine with windows7
in thread system sub routine with windows7

I have put on the begining of .pl file :

use strict; use warnings; ......
I have a file with name (data.in) in the path (C:\glomosim\bin) which I want to execute it on cmd.exe using the command (glomosim data.in) where "glomosim" is a keyword to execute the file (glomosim is a NW simualtor). So I write the following :
my @args = ("c:/glomosim/bin/","data.in"); system(@args) == 0 or die "system @args failed: \n syscode +:$? \n error:$! \n";
then many errors appear :( ! Plz I need a help really!