in reply to Perl System command

You could try something like
my $error = system('del temp.txt'); print qq(Return value is $error\n);
HTH

Replies are listed 'Best First'.
Re: Perl System command
by Abigail-II (Bishop) on Jan 07, 2004 at 14:27 UTC
    Add a
    $error >>= 8;
    between your first and last line to get a more accurate value.

    Abigail

Re: Re: Perl System command
by arunsub (Novice) on Jan 07, 2004 at 14:30 UTC
    Thanks for the quick reply. We r having a small problem with the return codes, the Return Code displayed is a multiple of "Actual Code * 256" Ex:- If the file is not present the expected code is 1 and getting return code as 256.