X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvmsish.pm;h=30c8eb1656d7fd1eee266b2158c68467530943a3;hb=55f4245edad4e38b1869f0a6467a997a59257a0f;hp=bbaf4f79f42402ed710dfe71ba5d464037a3ceea;hpb=9f84c00564fd021b1da47513d58d337c301b73aa;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/vmsish.pm b/lib/vmsish.pm index bbaf4f7..30c8eb1 100644 --- a/lib/vmsish.pm +++ b/lib/vmsish.pm @@ -1,5 +1,7 @@ package vmsish; +our $VERSION = '1.02'; + =head1 NAME vmsish - Perl pragma to control VMS-specific language features @@ -52,7 +54,7 @@ default of Universal Time (a.k.a Greenwich Mean Time, or GMT). This suppresses printing of VMS status messages to SYS$OUTPUT and SYS$ERROR if Perl terminates with an error status. and allows programs that are expecting "unix-style" Perl to avoid having to parse -VMS error messages. It does not supress any messages from Perl +VMS error messages. It does not suppress any messages from Perl itself, just the messages generated by DCL after Perl exits. The DCL symbol $STATUS will still have the termination status, but with a high-order bit set: @@ -101,7 +103,7 @@ Note that an exit() or die() that is compiled 'hushed' because of "use vmsish" is not un-hushed by calling vmsish::hushed(0) at runtime. The messages from error exits from inside the Perl core are generally -more serious, and are not supressed. +more serious, and are not suppressed. =back @@ -115,6 +117,8 @@ sub bits { my $bits = 0; my $sememe; foreach $sememe (@_) { + # Those hints are defined in vms/vmsish.h : + # HINT_M_VMSISH_STATUS and HINT_M_VMSISH_TIME $bits |= 0x40000000, next if $sememe eq 'status' || $sememe eq '$?'; $bits |= 0x80000000, next if $sememe eq 'time'; }