{
    "mode": "perldoc",
    "parameter": "vmsish",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/vmsish/json",
    "generated": "2026-07-05T13:36:59Z",
    "synopsis": "use vmsish;\nuse vmsish 'status';        # or '$?'\nuse vmsish 'exit';\nuse vmsish 'time';\nuse vmsish 'hushed';\nno vmsish 'hushed';\nvmsish::hushed($hush);\nuse vmsish;\nno vmsish 'time';",
    "sections": {
        "NAME": {
            "content": "vmsish - Perl pragma to control VMS-specific language features\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use vmsish;\n\nuse vmsish 'status';        # or '$?'\nuse vmsish 'exit';\nuse vmsish 'time';\n\nuse vmsish 'hushed';\nno vmsish 'hushed';\nvmsish::hushed($hush);\n\nuse vmsish;\nno vmsish 'time';\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "If no import list is supplied, all possible VMS-specific features are assumed. Currently, there\nare four VMS-specific features available: 'status' (a.k.a '$?'), 'exit', 'time' and 'hushed'.\n\nIf you're not running VMS, this module does nothing.\n\n\"vmsish status\"\nThis makes $? and \"system\" return the native VMS exit status instead of emulating the\nPOSIX exit status.\n\n\"vmsish exit\"\nThis makes \"exit 1\" produce a successful exit (with status SS$NORMAL), instead of\nemulating UNIX exit(), which considers \"exit 1\" to indicate an error. As with the CRTL's\nexit() function, \"exit 0\" is also mapped to an exit status of SS$NORMAL, and any other\nargument to exit() is used directly as Perl's exit status.\n\n\"vmsish time\"\nThis makes all times relative to the local time zone, instead of the default of Universal\nTime (a.k.a Greenwich Mean Time, or GMT).\n\n\"vmsish hushed\"\nThis suppresses printing of VMS status messages to SYS$OUTPUT and SYS$ERROR if Perl\nterminates with an error status, and allows programs that are expecting \"unix-style\" Perl\nto avoid having to parse VMS error messages. It does not suppress any messages from Perl\nitself, just the messages generated by DCL after Perl exits. The DCL symbol $STATUS will\nstill have the termination status, but with a high-order bit set:\n\nEXAMPLE: $ perl -e\"exit 44;\" Non-hushed error exit %SYSTEM-F-ABORT, abort DCL message $\nshow sym $STATUS $STATUS == \"%X0000002C\"\n\n$ perl -e\"use vmsish qw(hushed); exit 44;\"   Hushed error exit\n$ show sym $STATUS\n$STATUS == \"%X1000002C\"\n\nThe 'hushed' flag has a global scope during compilation: the exit() or die() commands that\nare compiled after 'vmsish hushed' will be hushed when they are executed. Doing a \"no\nvmsish 'hushed'\" turns off the hushed flag.\n\nThe status of the hushed flag also affects output of VMS error messages from compilation\nerrors. Again, you still get the Perl error message (and the code in $STATUS)\n\nEXAMPLE: use vmsish 'hushed'; # turn on hushed flag use Carp; # Carp compiled hushed exit\n44; # will be hushed croak('I die'); # will be hushed no vmsish 'hushed'; # turn off\nhushed flag exit 44; # will not be hushed croak('I die2'): # WILL be hushed, croak was\ncompiled hushed\n\nYou can also control the 'hushed' flag at run-time, using the built-in routine\nvmsish::hushed(). Without argument, it returns the hushed status. Since vmsish::hushed is\nbuilt-in, you do not need to \"use vmsish\" to call it.\n\nEXAMPLE: if ($quietexit) { vmsish::hushed(1); } print \"Sssshhhh...I'm hushed...\\n\" if\nvmsish::hushed(); exit 44;\n\nNote that an exit() or die() that is compiled 'hushed' because of \"use vmsish\" is not\nun-hushed by calling vmsish::hushed(0) at runtime.\n\nThe messages from error exits from inside the Perl core are generally more serious, and\nare not suppressed.\n\nSee \"Perl Modules\" in perlmod.\n",
            "subsections": []
        }
    },
    "summary": "vmsish - Perl pragma to control VMS-specific language features",
    "flags": [],
    "examples": [],
    "see_also": []
}