Grace Huang wrote:
> Hi,
>
> I use system call to run b.pl from a.pl. The returning status from b.pl is 35584 and
> b.pl stopped in the middle of its running. How can I interpret this status number?
> Thanks.
Read perlfunc manpage - function system:
You can check all the failure possibilities by inspecting "$?" like
this:
$exit_value = $? >> 8;
$signal_num = $? & 127;
$dumped_core = $? & 128;
When the arguments get executed via the system shell, results and
return codes will be subject to its quirks and capabilities. See the
section on "`STRING`" in the perlop manpage and the exec entry
elsewhere in this document for details.
You result would br 139 (0x8b).
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs