{
    "mode": "man",
    "parameter": "perlfreebsd",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/perlfreebsd/1/json",
    "generated": "2026-10-06T10:50:46Z",
    "sections": {
        "NAME": {
            "content": "perlfreebsd - Perl version 5 on FreeBSD systems\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This document describes various features of FreeBSD that will affect how Perl version 5\n(hereafter just Perl) is compiled and/or runs.\n",
            "subsections": [
                {
                    "name": "FreeBSD core dumps from readdir_r with ithreads",
                    "content": "When perl is configured to use ithreads, it will use re-entrant library calls in preference\nto non-re-entrant versions.  There is a bug in FreeBSD's \"readdirr\" function in versions 4.5\nand earlier that can cause a SEGV when reading large directories. A patch for FreeBSD libc is\navailable (see <https://bugs.freebsd.org/bugzilla/showbug.cgi?id=30631>) which has been\nintegrated into FreeBSD 4.6.\n"
                },
                {
                    "name": "$^X doesn't always contain a full path in FreeBSD",
                    "content": "perl sets $^X where possible to a full path by asking the operating system. On FreeBSD the\nfull path of the perl interpreter is found by using \"sysctl\" with \"KERNPROCPATHNAME\" if\nthat is supported, else by reading the symlink /proc/curproc/file. FreeBSD 7 and earlier has\na bug where either approach sometimes returns an incorrect value (see\n<https://bugs.freebsd.org/bugzilla/showbug.cgi?id=35703>).  In these cases perl will fall\nback to the old behaviour of using C's \"argv[0]\" value for $^X.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "Nicholas Clark <nick@ccl4.org>, collating wisdom supplied by Slaven Rezic and Tim Bunce.\n\nPlease report any errors, updates, or suggestions to <https://github.com/Perl/perl5/issues>.\n\nperl v5.38.2                                 2026-08-18                               PERLFREEBSD(1)",
            "subsections": []
        }
    },
    "summary": "perlfreebsd - Perl version 5 on FreeBSD systems",
    "flags": [],
    "examples": [],
    "see_also": []
}