News::...Thread(3pm)

πŸ’– News::...Thread(3pm) πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation corner of the world, where we're gonna talk about keeping track of threads in a Usenet newsgroup. yes, threads. like, the original group chat. no cap. 🧡✨


✨ NAME ✨

News::Scan::Thread β€” keep track of threads in a Usenet newsgroup πŸ¦‹


✨ SYNOPSIS ✨

use News::Scan::Thread;

my $thr = News::Scan::Thread->new($news_scan_article_obj);

like, that's it. that's the whole vibe. πŸ’…


✨ DESCRIPTION ✨

so this module gives you a class, and the objects from that class are literally built to keep track of threads of discussion in a Usenet newsgroup. it's giving organizational queen. πŸ‘‘


πŸŽ€ CONSTRUCTOR πŸŽ€

  • new ( ARTICLE ) β€” ARTICLE should be a News::Scan::Article object, or honestly an object of some class derived from News::Scan::Article β€” we're not picky, we love a nepo-baby subclass. 🫢

new does some initialization (the behind-the-scenes getting-ready moment, main character energy) and then returns a News::Scan::Thread. slay. ✨


🌸 METHODS 🌸

every single one of these is a little getter, and they're all obsessed with returning numbers about your thread. let's go, one by one, no skips, we don't gatekeep: πŸ’–

  • subject β€” returns this thread's subject. the topic. the moment. πŸ’¬
  • volume β€” returns the volume in bytes generated in this thread. it's giving how much yapping, measured in bytes. πŸ“
  • articles β€” returns the number of posts to this thread. so like, how many of y'all showed up. πŸ‘―
  • header_volume β€” returns the volume in bytes of the headers in this thread's articles. yes, the headers get their own byte count. they have a whole separate personality. πŸŽ€
  • header_lines β€” returns the number of header lines in this thread's articles. πŸ“‹
  • body_volume β€” returns the volume in bytes of the message bodies of this thread's articles. the meat. the substance. πŸ“
  • body_lines β€” returns the number of lines in this thread's message bodies. line count, but for the bod. ✍️
  • orig_volume β€” returns the volume in bytes of the original content of this thread's articles. like, the unquoted, un-quoted-reply, genuinely-you content. πŸ”₯
  • orig_lines β€” returns the number of original lines in this thread's articles. 🌟
  • sig_volume β€” returns the volume in bytes of the signatures of this thread's articles. yes bestie, the sigs. they count. they always counted. πŸ’œ
  • sig_lines β€” returns the number of signature lines in this thread's articles. and that's the last one, periodt. 🫑

🌈 SEE ALSO 🌈

go check out the rest of the family, they're all iconic:

  • News::Scan
  • News::Scan::Article

πŸ‘‘ AUTHOR πŸ‘‘

Greg Bacon <gbacon@cs.uah.edu> β€” the actual legend who wrote this. we stan. πŸ’…


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. 🫢

okay so like, legally speaking: it's free, you can share it and/or remix it, just keep it under the same terms as Perl itself. respect the rules, queen. ✨

and that's the whole page, bestie!! this beauty shipped with perl v5.32.0 and got dated 2021-01-08 β€” so if you're reading it, congrats, you're part of the News::...Thread(3pm) legacy. mwah. πŸ’‹πŸ¦‹πŸ’–

πŸ“¦ where this page comes from