here is the actual code: use strict; use warnings; use Cwd; chdir "L:\\Console"; my $dir = getcwd(); print "current dir is : $dir\n"; my $res = system("dir"); $res=system("devenv","/rebuild","release","abc.sln","/useenv"); print "$res\n";
now, the issue is , at last the value of $res is 256 instead of the real output of command. just to give details, devenv is the compiler which compiles the solution file. i need to compile the solution file abc.sln and print the entire output of command on the console pls suggest --irf ________________________________ From: Jim Gibson <jimsgib...@gmail.com> To: Perl Beginners <beginners@perl.org> Sent: Tuesday, May 24, 2011 9:19 AM Subject: Re: proper syntax for command You chose to allow Jim Gibson (jimsgib...@gmail.com) even though this message failed authentication Click to disallow