perlatbest has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use below command, but not sure why I am not able to store the output value of system command to variable "cmd", as system command output is displaying on screen very fine.
my $cmd = system("find . type f -name \"fname*\") my $cmd = `ls -l`;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using System command
by thomas895 (Deacon) on Apr 19, 2012 at 23:38 UTC | |
Re: Using System command
by mbethke (Hermit) on Apr 19, 2012 at 23:41 UTC | |
by perlatbest (Initiate) on Apr 20, 2012 at 00:39 UTC |
Back to
Seekers of Perl Wisdom