At 3:40 AM -0400 6/2/01, Charles Lane wrote:
>But I think the main problem is that $^S doesn't have anything like
>what you want...it's some sort of "what compile/interpret mode are we
>in" status.  No connection to pipe/subproc completion.

It apparently did or was intended to at one time, though  -- I don't
think the statement in perlvms.pod was made up out of thin air, or at
least I've been assuming all along that the description of $^S in
perlvar.pod is not comprehensive for VMS.

>$? is the beast you need.  With "use vmsish (status);" it has the
>true-blue VMS numeric error code.

Yes, that does appear to work:

$  perl -e "use vmsish status; $pid=open(F, qq/|blechh/); waitpid($pid,0); print qq/** 
$? **/;"
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
 \BLECHH\
 \BLECHH\
** 229520 **
$ write sys$output f$message(229520)
%CLI-W-IVVERB, unrecognized command verb - check validity and spelling


-- 
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Reply via email to