{
    "mode": "perldoc",
    "parameter": "Mail::Field::Generic",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3AField%3A%3AGeneric/json",
    "generated": "2026-06-13T06:56:23Z",
    "synopsis": "use Mail::Field;\nmy $field = Mail::Field->new('Subject', 'some subject text');\nmy $field = Mail::Field->new(subject => 'some subject text');",
    "sections": {
        "NAME": {
            "content": "Mail::Field::Generic - implementation for inspecific fields\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "Mail::Field::Generic\nis a Mail::Field\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Mail::Field;\nmy $field = Mail::Field->new('Subject', 'some subject text');\nmy $field = Mail::Field->new(subject => 'some subject text');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A generic implementation for header fields without own implementation. This is fine for fields\nlike \"Subject\", \"X-Mailer\", etc., where the field holds only a string of no particular\nimportance/format.\n\nExtends \"DESCRIPTION\" in Mail::Field.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Extends \"METHODS\" in Mail::Field.\n",
            "subsections": [
                {
                    "name": "Constructors",
                    "content": "Extends \"Constructors\" in Mail::Field.\n\nMail::Field::Generic->combine($fields)\nInherited, see \"Constructors\" in Mail::Field\n\nMail::Field::Generic->extract( $tag, $head [, $index ] )\nInherited, see \"Constructors\" in Mail::Field\n\nMail::Field::Generic->new( $tag [, STRING | %options] )\nInherited, see \"Constructors\" in Mail::Field\n\n\"Fake\" constructors\nExtends \"\"Fake\" constructors\" in Mail::Field.\n\n$obj->create(%options)\n-Option--Default\nText    ''\n\nText => STRING\n\n$obj->parse( [STRING] )\nSet the new text, which is empty when no STRING is provided.\n"
                },
                {
                    "name": "Accessors",
                    "content": "Extends \"Accessors\" in Mail::Field.\n\n$obj->set(%options)\nInherited, see \"Accessors\" in Mail::Field\n\n$obj->stringify()\nInherited, see \"Accessors\" in Mail::Field\n\n$obj->tag()\nMail::Field::Generic->tag()\nInherited, see \"Accessors\" in Mail::Field\n"
                },
                {
                    "name": "Smart accessors",
                    "content": "Extends \"Smart accessors\" in Mail::Field.\n\n$obj->text( [STRING] )\nInherited, see \"Smart accessors\" in Mail::Field\n"
                }
            ]
        },
        "DETAILS": {
            "content": "Extends \"DETAILS\" in Mail::Field.\n",
            "subsections": []
        },
        "DIAGNOSTICS": {
            "content": "Error: Undefined subroutine <method> called\nMail::Field objects use autoloading to compile new functionality. Apparently, the method\ncalled is not implemented for the specific class of the field object.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance\nwithout commitment to further development.\n\nMail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>.\nMail::Mailer and Mail::Send by Tim Bunce <Tim.Bunce@ig.co.uk>. For other contributors see\nChangeLog.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2017 Mark Overmeer\n<perl@overmeer.net>.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself. See http://www.perl.com/perl/misc/Artistic.html\n",
            "subsections": []
        }
    },
    "summary": "Mail::Field::Generic - implementation for inspecific fields",
    "flags": [],
    "examples": [],
    "see_also": []
}