[Chicago-talk] testing exit status of external program

Steven Lembark lembark at wrkhors.com
Tue Dec 9 13:17:53 CST 2003

-- Jim Thomason <jthomasoniii at yahoo.com>

> $?.
> close (ES_CLIENT);
> print "ES_CLIENT returned $?";

On *NIX you can check $? a bit further -- see my previous
email on forks for an example (or just grab Schedule::Parallel
and look at the main loop). The Camel also has a short note on
breaking up $? into exit status (what you usually care about),
core dump, and signal components.

Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 888 359 3508

More information about the Chicago-talk mailing list