{
    "content": [
        {
            "type": "text",
            "text": "# Tie::ToObject (perldoc)\n\n## NAME\n\nTie::ToObject - Tie to an existing object.\n\n## SYNOPSIS\n\nuse Tie::ToObject;\nmy $stolen = tied(%something);\ntie %somethingelse, 'Tie::ToObject', $stolen;\n\n## DESCRIPTION\n\nWhile \"tie\" in perldoc allows tying to an arbitrary object, the class in question must support\nthis in it's implementation of \"TIEHASH\", \"TIEARRAY\" or whatever.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **VERSION CONTROL**\n- **AUTHOR**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Tie::ToObject",
        "section": "",
        "mode": "perldoc",
        "summary": "Tie::ToObject - Tie to an existing object.",
        "synopsis": "use Tie::ToObject;\nmy $stolen = tied(%something);\ntie %somethingelse, 'Tie::ToObject', $stolen;",
        "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": 12,
                "subsections": []
            },
            {
                "name": "VERSION CONTROL",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Tie::ToObject - Tie to an existing object.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Tie::ToObject;\n\nmy $stolen = tied(%something);\n\ntie %somethingelse, 'Tie::ToObject', $stolen;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "While \"tie\" in perldoc allows tying to an arbitrary object, the class in question must support\nthis in it's implementation of \"TIEHASH\", \"TIEARRAY\" or whatever.\n\nThis class provides a very tie constructor that simply returns the object it was given as it's\nfirst argument.\n\nThis way side effects of calling \"$object->TIEHASH\" are avoided.\n\nThis is used in Data::Visitor in order to tie a variable to an already existing object. This is\nalso useful for cloning, when you want to clone the internal state object instead of going\nthrough the tie interface for that variable.\n",
                "subsections": []
            },
            "VERSION CONTROL": {
                "content": "This module is maintained using Darcs. You can get the latest version from\n<http://nothingmuch.woobling.org/code>, and use \"darcs send\" to commit changes.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Yuval Kogman <nothingmuch@woobling.org>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c) 2008 Yuval Kogman. All rights reserved\nThis program is free software; you can redistribute\nit and/or modify it under the same terms as Perl itself.\n",
                "subsections": []
            }
        }
    }
}