News::...Article(3pm)
π News::Scan::Article β the vibe check on your Usenet articles π
okay bestie, so this is a page from the User Contributed Perl Documentation and it's literally all about News::Scan::Article, living in section 3pm of the manual. it's giving "I catalog every little thing about your news articles" energy and honestly? iconic. π
β¨ NAME β¨
News::Scan::Article β collect information about news articles π
β¨ SYNOPSIS β¨
use News::Scan::Article;
my $art = News::Scan::Article->new( ARG, [ OPTIONS, ] SCAN );
β¨ DESCRIPTION β¨
so this module hands you a derived class of Mail::Internet β like, it inherits all that good stuff β and the objects it makes are perfect for digesting Usenet news articles. that's the whole gig. no cap. π¦
β¨ CONSTRUCTOR β¨
πΈ new ( ARG, [ OPTIONS, ] SCAN-OBJ )
the ARG and OPTIONS parameters are identical to the ones Mail::Internet needs, with one tiny catch: ARG is required, bestie. go peek at Mail::Internet for the deets.
the SCAN parameter should be a News::Scan object. go peek at News::Scan for that one. π
and here's the tea: if the article falls into the period of interest for SCAN, you get the object back. if it doesn't? you get undef. that's it. that's the rule. π
β¨ METHODS β¨
group ( [ SCAN-OBJ ] )β sets or returns an object's group, depending on whetherSCAN-OBJis present or not. noSCAN-OBJ? it's a getter, babes. π«Άauthorβ returns the article's author, represented as aMail::Addressobject. fancy. β¨message_idβ returns the article's Message-ID. πsubjectβ returns the article's subject. π©newsgroupsβ returns the list of newsgroups this article was posted to.sizeβ returns the size of this article in bytes.header_sizeβ returns the size of this article's header in bytes.header_linesβ returns the number of lines consumed in this article by headers.body_sizeβ returns the size of this article's body in bytes.body_linesβ returns the number of lines consumed in this article by the body.orig_sizeβ returns the size of this article's original content in bytes. see"QuoteRE"inNews::Scan.orig_linesβ returns the number of lines consumed in this article by original content. keep in mind that original content is a subset of the body, so don't get it twisted. π§sig_sizeβ returns the size of this article'ss signature in bytes. (yes, "article'ss" β that's literally what it says, and honestly? we're keeping it. it's part of the lore. π)sig_linesβ returns the number of lines consumed in this article by the signature.
β¨ SEE ALSO β¨
News::Scan, Mail::Internet, Mail::Address β go read those too, bestie, they're all connected. π
β¨ AUTHOR β¨
Greg Bacon <gbacon@cs.uah.edu> π«Ά
β¨ COPYRIGHT β¨
Copyright (c) 1997 Greg Bacon. All Rights Reserved. This library is free software. You may distribute and/or modify it under the same terms as Perl itself. β
and that's the whole page, no skips, no cuts, every single method accounted for. slay. π
okay bye bestie, this was perl v5.32.0 dated 2021-01-08 β the original News::...Article(3pm) footer energy, but make it cute. ππΈπ
π¦ where this page comes from
- debian bookworm: libnews-scan-perl 0.53-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnews-scan-perl 0.53-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libnews-scan-perl 0.53-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnews-scan-perl 0.53-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnews-scan-perl 0.53-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnews-scan-perl 0.53-4.1 Β· 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