Mail::A...::Token(3)
π NAME π
ok so bestie, this is Mail::AuthenticationResults::Token β the base class for modelling AuthenticationResults Header parts. it's giving "parent class energy" fr fr. π
it lives in the User Contributed Perl Documentation section of the manual, iykyk.
β¨ VERSION β¨
this one's rocking version 2.20250709 π
π¦ DESCRIPTION π¦
so basically these are the classes that represent a tokenised Authentication Results Header, and they're what gets used during parsing. that's the whole vibe. πΈ
π METHODS π
π new( $header, $args )
returns a brand new Token object, parsed out of the $header string you handed it, using $args to do the work. β¨
the values inside $args totally depend on which subclass of Token you're rolling with. the possible types are:
Mail::AuthenticationResults::Token::Assignmentβ an assignment operatorMail::AuthenticationResults::Token::Commentβ a commentMail::AuthenticationResults::Token::QuotedStringβ a quoted stringMail::AuthenticationResults::Token::Separatorβ a separatorMail::AuthenticationResults::Token::Stringβ a string
pick your fighter, no cap. π«Ά
π new_from_value( $value )
makes you a shiny new token out of the $value you pass in. iconic behaviour honestly.
β value()
hands you back the value of the current Token instance. that's it, that's the whole job. π
π remainder()
gives you the leftover chunk of the header string β like, everything still sitting there after the current token got parsed out of it. the little leftovers, the crumbs, the remainder. π
π parse()
runs the parser on the current $header and sets up both value() and remainder(). it's the main character of this whole operation ngl.
π₯ is()
returns the type of token we are. a little identity check. a vibe check, if you will. π
π§ AUTHOR π§
Marc Bradshaw <marc@marcbradshaw.net> β shoutout to the legend himself π
πΈ COPYRIGHT AND LICENSE πΈ
This software is copyright (c) 2021 by Marc Bradshaw.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π«Ά
ok bestie that's the whole page!! this one was documented with perl v5.42.0 and dated 2025-07-25, and it's Mail::A...::Token(3) all day long. mwah, slay, periodt πβ¨π
π¦ where this page comes from
- fedora 43: perl-Mail-AuthenticationResults 2.20250709-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms