{
    "mode": "perldoc",
    "parameter": "Specio::DeclaredAt",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Specio%3A%3ADeclaredAt/json",
    "generated": "2026-06-15T11:50:46Z",
    "synopsis": "my $declared = Specio::DeclaredAt->newfromcaller(1);\nprint $declared->description;",
    "sections": {
        "NAME": {
            "content": "Specio::DeclaredAt - A class to represent where a type or coercion was declared\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 0.47\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $declared = Specio::DeclaredAt->newfromcaller(1);\n\nprint $declared->description;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class provides a thin wrapper around some of the return values from Perl's \"caller\"\nbuilt-in. It's used internally to identify where types and coercions are being declared, which\nis useful when generating error messages.\n",
            "subsections": []
        },
        "API": {
            "content": "This class provides the following methods.\n\nSpecio::DeclaredAt->newfromcaller($depth)\nGiven a call stack depth, this method returns a new \"Specio::DeclaredAt\" object.\n\n$declaredat->package, $declaredat->filename, $declaredat->line\nReturns the call stack information recorded when the object was created. These values are always\npopulated.\n\n$declaredat->subroutine\nReturns the subroutine from the call stack. This may be an \"udnef\"\n\n$declaredat->hassubroutine\nReturns true if there is a subroutine name associated with this object.\n\n$declaredat->description\nPuts all the information together into a single string like \"declared in package Foo::Bar\n(.../Foo/Bar.pm) at line 42 in sub named blah\".\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at <https://github.com/houseabsolute/Specio/issues>.\n\nI am also usually active on IRC as 'autarch' on \"irc://irc.perl.org\".\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for Specio can be found at <https://github.com/houseabsolute/Specio>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Rolsky <autarch@urth.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2012 - 2021 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "Specio::DeclaredAt - A class to represent where a type or coercion was declared",
    "flags": [],
    "examples": [],
    "see_also": []
}