HTML::...n::Tag(3pm)
π HTML::TokeParser::Simple::Token::Tag π
okay bestie, welcome to the HTML::TokeParser::Simple::Token::Tag page β which, if you're squinting at your terminal, is the one the manual calls HTML::...n::Tag(3pm) (the name got squished, it's giving β¨mysteriousβ¨, don't worry about it).
πΈ NAME πΈ
HTML::TokeParser::Simple::Token::Tag β it's the token tag class from Token.pm, periodt. π
β¨ SYNOPSIS β¨
no cap, this is how you actually use it:
use HTML::TokeParser::Simple;
my $p = HTML::TokeParser::Simple->new( $somefile );
while ( my $token = $p->get_token ) {
# This prints all text in an HTML doc (i.e., it strips the HTML)
next unless $token->is_text;
print $token->as_is;
}
(that comment in there is literally the original's own words, it's iconic, we keep it π )
π¦ DESCRIPTION π¦
so here's the tea β: this is the base class for start and end tokens. That's its whole job. It's the parent, the main character energy behind the scenes, and it is not supposed to be instantiated. Like, don't. It said what it said. π
if you want the actual details, go read HTML::TokeParser::Simple::Token::Tag::Start and HTML::TokeParser::Simple::Token::Tag::End β those are the ones doing the real work, fr fr.
π OVERRIDDEN METHODS π
these are the methods this class hooks you up with. The descriptions of what they actually do live over in HTML::TokeParser::Simple, so slide over there for the deets:
as_isβ it's on the list, bestie π«Άget_tagβ also on the list πreturn_textβ yep, on the list too β¨
and that's the whole page, no filler, no fluff, we ate and left no crumbs π
User Contributed Perl Documentation π β that's where this lil' page came from, perl v5.32.1 on 2021-12-05. so like, vintage but still slaying. bye bestie, go parse some HTML ππ
π¦ where this page comes from
- debian bookworm: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms