Hi.
I have a little problem, I can't store the systemcommand to an variable.
Let say this perl script
#!/usr/bin/perl
$tmp = system ("ls"
;
print "The dir stuff is $tmp";
This script will first show the output from the $tmp = system ("ls"
; line and then print "The dir stuff is 0"
How can I store the output from system("xxx"
into one variable ??
And I don't want the $tmp = system ("ls"
; line to print anything.
I want the output to be like
The dir stuff is
xxxxxxx xxxxxxxx xxxxxxxxx xxx
xxxxxxx xxxxxxxx xxxxxxxxx xxx
until the end.
Thanks in advance
I have a little problem, I can't store the systemcommand to an variable.
Let say this perl script
#!/usr/bin/perl
$tmp = system ("ls"
print "The dir stuff is $tmp";
This script will first show the output from the $tmp = system ("ls"
How can I store the output from system("xxx"
And I don't want the $tmp = system ("ls"
I want the output to be like
The dir stuff is
xxxxxxx xxxxxxxx xxxxxxxxx xxx
xxxxxxx xxxxxxxx xxxxxxxxx xxx
until the end.
Thanks in advance