I am using system function of perl to call some system function of unix like grep or find.
I am redirecting output of unix command in one text file.
Out put is generated correctly but status return by perls system function is 256.
I have read that system function did not return always '0' ZERO for success and non zero values for error.
so how can I check whether my command is successful or not