Lintian::Deb822::Section(3)

πŸ’– Lintian::Deb822::Section(3) πŸ’–

okay bestie, so this is a page from the Lintian manual β€” Lintian being the Debian Package Checker β€” and specifically it's the section-3 page for Lintian::Deb822::Section. Yes, section 3, the library-functions girlies. Pull up a chair, we're doing Perl module lore today 🫢


✨ NAME ✨

Lintian::Deb822::Section β€” a paragraph in a control file. that's it, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

use Lintian::Deb822::Section;

literally one line. she's low-maintenance like that ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this class represents a paragraph in a Deb822 control file. one paragraph = one object. that's the whole concept, no cap πŸŽ€


πŸ‘‘ INSTANCE METHODS πŸ‘‘

these are the methods you call on an actual instance, i.e. on one of those paragraph objects. let's go one by one, no skipping, I promised πŸ“

  • legend β€” returns exact field names for their lowercase versions. so you hand it the lowercase version and it gives you the real casing back. cute little lookup table energy πŸ”₯
  • verbatim β€” returns a hash to the raw, unedited and verbatim field values. untouched, unfiltered, exactly as the file wrote it. main character, no edits πŸ’…
  • unfolded β€” returns a hash to unfolded field values. continuation lines have been connected. so like, the multi-line stuff got stitched back together into one string 🧡
  • positions β€” the original line positions. where everything actually sat in the file, for the girlies who need to know πŸ“
  • trimmed_list(FIELD [, SEPARATOR])
  • unfolded_value (FIELD) β€” this method returns the unfolded value of the control field FIELD in the control file for the package. for a source package, this is the *.dsc file; for a binary package, this is the control file in the control section of the package. if FIELD is passed but not present, then this method returns undef. so yeah, be ready for that undef, bestie, check before you use it 😭
heads up: trimmed_list and unfolded_value are listed together in the original and share that one description. I'm not out here inventing extra lore for trimmed_list β€” if the source doesn't say it, I don't say it, fr fr.
  • value (FIELD) β€” if FIELD is given, this method returns the value of the control field FIELD. that's the whole sentence. girl is concise and we respect it πŸ’œ
  • untrimmed_value (FIELD) β€” if FIELD is given, this method returns the value of the control field FIELD. yes it's the same sentence as value, that's just how the page is written, don't @ me πŸ™ˆ
  • text (FIELD)
  • store (FIELD, VALUE)
  • drop (FIELD) β€” okay so these three are just sitting there in the original with zero description attached. iconic and mysterious. I am NOT making up behaviour for them, that would be a lie and lies are not the vibe ✨
  • declares (NAME) β€” returns a boolean for whether the named field exists. so basically true or false, does it exist, yes or no, vibe check on the field πŸ’€
  • names β€” returns an array with the literal field names. a whole list, bestie πŸ“
  • literal_name β€” returns an array with the literal, true case field names. the exact casing, the original typography, the way it was truly written πŸŽ€
  • position β€” with an argument, returns the starting line of the named field. without an argument, returns the starting line of the paragraph. two modes, one method, she contains multitudes 🌈
  • extra β€” and that's it. no description provided in the original. she's just there, existing, serving cunt and saying nothing 🧚

🌟 AUTHOR 🌟

originally written by Felix Lechner <felix.lechner@lease-up.com> for Lintian. thank you Felix, we appreciate you 🫢


πŸ’œ SEE ALSO πŸ’œ


and that's the page!! this was Lintian v2.139.0ubuntu2, dated 2026-10-08, and the whole thing is the Lintian::Deb822::Section(3) manual. periodt πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from