LPM: perldoc perlerrors
David Hempy
hempy at ket.org
Tue Aug 29 15:22:15 CDT 2000
At 04:01 PM 8/29/2000 -0400, you wrote:
>How about a compromise? Create something like a header file that defines
>$SYSTEM_CALL_SUCCESS = 0;
>$SYSTEM_CALL_FAILURE = 1;
>for now, and use only the symbolic values in the code. Then change the
>header for Perl 6.
Echh...that would look about as graceful as a DOS batch file!
`foo *.txt` or die "oops.";
becomes:
unless (`foo *.txt` == $SYSTEM_CALL_SUCCESS) {die "oops."}
--
David Hempy
Internet Database Administrator
Kentucky Educational Television
<hempy at ket.org> -- (859)258-7164 -- (800)333-9764
More information about the Lexington-pm
mailing list