perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <>
Subject handling system call exit status
Date Fri, 15 Jul 2005 21:29:11 GMT

Sometimes I see strange numbers when handling exit status from system

    my $out = `$cmd`;
    my $stat = $? >> 8;

and $stat may contain anumber like  16777215 at this point, whereas on
commandline it would be more like 2, or no error at all (0).

How can I deal with this? I do want to report an error on failure, but
now I'm stuck reporting false errors.

MOD_PERL' => 'mod_perl/1.29'


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message