On Mon, May 23, 2011 at 23:17, Irfan Sayed <irfan_sayed2...@yahoo.com> wrote:
> 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

I didn't do "Replay-all" :-()

n place of "system", try using back-quiotes (known as grave with an
accent from the French) to "execute the statement and preserve the
output".  Or use the "qx" operator.  The results of the command should
be assigned to the variable.  Do you have a verbose option for your
compiler call?

Hope this helps,
Ken Wolcott

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to