{
    "content": [
        {
            "type": "text",
            "text": "# Digest::file (perldoc)\n\n## NAME\n\nDigest::file - Calculate digests of files\n\n## SYNOPSIS\n\n# Poor mans \"md5sum\" command\nuse Digest::file qw(digestfilehex);\nfor (@ARGV) {\nprint digestfilehex($, \"MD5\"), \"  $\\n\";\n}\n\n## DESCRIPTION\n\nThis module provide 3 convenience functions to calculate the digest of files. The following\nfunctions are provided:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (3 subsections)\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Digest::file",
        "section": "",
        "mode": "perldoc",
        "summary": "Digest::file - Calculate digests of files",
        "synopsis": "# Poor mans \"md5sum\" command\nuse Digest::file qw(digestfilehex);\nfor (@ARGV) {\nprint digestfilehex($, \"MD5\"), \"  $\\n\";\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": [
                    {
                        "name": "digest_file",
                        "lines": 6
                    },
                    {
                        "name": "digest_file_hex",
                        "lines": 2
                    },
                    {
                        "name": "digest_file_base64",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Digest::file - Calculate digests of files\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# Poor mans \"md5sum\" command\nuse Digest::file qw(digestfilehex);\nfor (@ARGV) {\nprint digestfilehex($, \"MD5\"), \"  $\\n\";\n}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provide 3 convenience functions to calculate the digest of files. The following\nfunctions are provided:\n",
                "subsections": [
                    {
                        "name": "digest_file",
                        "content": "This function will calculate and return the binary digest of the bytes of the given file.\nThe function will croak if it fails to open or read the file.\n\nThe $algorithm is a string like \"MD2\", \"MD5\", \"SHA-1\", \"SHA-512\". Additional arguments are\npassed to the constructor for the implementation of the given algorithm.\n"
                    },
                    {
                        "name": "digest_file_hex",
                        "content": "Same as digestfile(), but return the digest in hex form.\n"
                    },
                    {
                        "name": "digest_file_base64",
                        "content": "Same as digestfile(), but return the digest as a base64 encoded string.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "Digest\n",
                "subsections": []
            }
        }
    }
}