is there a way to save the output of a system call as a variable to print later

and

suppress the initial printing of the output of the call to the terminal??

###########
my $keepStat;

$keepStat = system "stat $inputScratch"; ##  I DON"T WANT THIS TO PRINT
#####################################  AS SOON AS IT'S PERFORMED

print ".........". $keepStat . "..........\n"; ## I DO WANT IT TO PRINT NOW
################################## '0' is printed, instead of the 'stat' output

###########

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to