{
    "mode": "perldoc",
    "parameter": "Mail::Box::Tie",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3ABox%3A%3ATie/json",
    "generated": "2026-06-12T18:44:52Z",
    "synopsis": "As an array:\nuse Mail::Box::Tie;\ntie my(@inbox), Mail::Box::Tie::ARRAY => $folder;\ntie my(@inbox), Mail::Box::Tie => $folder;    # deprecated\nprint $inbox[3];\nor as hash:\ntie my(%inbox), Mail::Box::Tie::HASH => $folder;\ntie my(%inbox), Mail::Box::Tie => $folder;    # deprecated\nprint $inbox{'<12379.124879@example.com>'};",
    "sections": {
        "NAME": {
            "content": "Mail::Box::Tie - access an existing message-folder as an array or hash\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "As an array:\n\nuse Mail::Box::Tie;\ntie my(@inbox), Mail::Box::Tie::ARRAY => $folder;\ntie my(@inbox), Mail::Box::Tie => $folder;    # deprecated\nprint $inbox[3];\n\nor as hash:\n\ntie my(%inbox), Mail::Box::Tie::HASH => $folder;\ntie my(%inbox), Mail::Box::Tie => $folder;    # deprecated\nprint $inbox{'<12379.124879@example.com>'};\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The use of \"Mail::Box::Tie\" is deprecated, because it is succeeded by two separate modules:\nMail::Box::Tie::ARRAY and Mail::Box::Tie::HASH. However, this module still works.\n\nFolders certainly look like an array of messages, so why not just access them as one? Or, the\norder is not important, but the message-ids are (give relations): why not access them from a\nhash based on this message-id? Programs using one of these ties will look simpler than programs\nusing the more traditional method calls.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "This module is part of Mail-Box distribution version 3.009, built on August 18, 2020. Website:\nhttp://perl.overmeer.net/CPAN/\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Copyrights 2001-2020 by [Mark Overmeer]. For other contributors see ChangeLog.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself. See http://dev.perl.org/licenses/\n",
            "subsections": []
        }
    },
    "summary": "Mail::Box::Tie - access an existing message-folder as an array or hash",
    "flags": [],
    "examples": [],
    "see_also": []
}