{
    "mode": "perldoc",
    "parameter": "AppConfig::Sys",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/AppConfig%3A%3ASys/json",
    "generated": "2026-06-09T21:17:23Z",
    "synopsis": "use AppConfig::Sys;\nmy $sys = AppConfig::Sys->new();\n@fields = $sys->getpwuid($userid);\n@fields = $sys->getpwnam($username);",
    "sections": {
        "NAME": {
            "content": "AppConfig::Sys - Perl5 module defining platform-specific information and methods for other\nAppConfig::* modules.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use AppConfig::Sys;\nmy $sys = AppConfig::Sys->new();\n\n@fields = $sys->getpwuid($userid);\n@fields = $sys->getpwnam($username);\n",
            "subsections": []
        },
        "OVERVIEW": {
            "content": "AppConfig::Sys is a Perl5 module provides platform-specific information and operations as\nrequired by other AppConfig::* modules.\n\nAppConfig::Sys is distributed as part of the AppConfig bundle.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "USING THE AppConfig::Sys MODULE\nTo import and use the AppConfig::Sys module the following line should appear in your Perl\nscript:\n\nuse AppConfig::Sys;\n\nAppConfig::Sys is implemented using object-oriented methods. A new AppConfig::Sys object is\ncreated and initialised using the AppConfig::Sys->new() method. This returns a reference to a\nnew AppConfig::Sys object.\n\nmy $sys = AppConfig::Sys->new();\n\nThis will attempt to detect your operating system and create a reference to a new AppConfig::Sys\nobject that is applicable to your platform. You may explicitly specify an operating system name\nto override this automatic detection:\n\n$unixsys = AppConfig::Sys->new(\"Unix\");\n\nAlternatively, the package variable $AppConfig::Sys::OS can be set to an operating system name.\nThe valid operating system names are: Win32, VMS, Mac, OS2 and Unix. They are not case-specific.\n",
            "subsections": [
                {
                    "name": "AppConfig::Sys METHODS",
                    "content": "AppConfig::Sys defines the following methods:\n"
                },
                {
                    "name": "getpwnam",
                    "content": "Calls the system function getpwnam() if available and returns the result. Returns undef if\nnot available. The cangetpwnam() method can be called to determine if this function is\navailable.\n"
                },
                {
                    "name": "getpwuid",
                    "content": "Calls the system function getpwuid() if available and returns the result. Returns undef if\nnot available. The cangetpwuid() method can be called to determine if this function is\navailable.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "Andy Wardley, <abw@wardley.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 1997-2007 Andy Wardley. All Rights Reserved.\n\nCopyright (C) 1997,1998 Canon Research Centre Europe Ltd.\n\nThis module is free software; you can redistribute it and/or modify it under the term of the\nPerl Artistic License.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "AppConfig, AppConfig::File\n",
            "subsections": []
        }
    },
    "summary": "AppConfig::Sys - Perl5 module defining platform-specific information and methods for other AppConfig::* modules.",
    "flags": [],
    "examples": [],
    "see_also": []
}