Debian...:Files(3pm)

πŸ“¦
version 0.2 Β· 4 versions
, in ubuntu noble, ubuntu resolute

πŸ’– Debian...:Files(3pm) πŸ’–

okay bestie, so this is the manual for Debian::Copyright::Stanza::Files β€” it lives in the 3pm section of the perl man pages, under User Contributed Perl Documentation. Buckle up, it's giving niche-but-iconic πŸŽ€


✨ NAME ✨

Debian::Copyright::Stanza::Files β€” the Files stanza of a Debian copyright file, but make it a perl module πŸ¦‹


🌸 VERSION 🌸

This doc is describing Debian::Copyright::Stanza::Files version 0.2 . periodt. πŸ’…


πŸ‘‘ SYNOPSIS πŸ‘‘

my $copy = Debian::Copyright::Stanza::Files->new(\%data);
print $copy;                         # auto-stringification

like… you make one, you print it, it stringifies itself. main character energy, no notes. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

So Debian::Copyright::Stanza::Files is your girl for representing and manipulating a "Files:" stanza from Debian copyright files, and she does it the object-oriented way πŸ’β€β™€οΈ

And the way she just… converts herself into a textual representation whenever you use her in string context?? obsessed. literally auto-stringification. πŸ’…


πŸŽ€ FIELDS πŸŽ€

here's every field a Files stanza supports, bestie, don't skip em:

heads up: real copyright fields can lowkey have dashes in their names. those get swapped out for underscores. no cap. πŸ”₯
  • Files
  • License
  • Copyright
  • Comment

🌈 CONSTRUCTOR 🌈

new( { field => value, ... } )

makes you a brand new Debian::Copyright::Stanza::Files object, and if you want, it'll initialise itself with whatever data you hand it. optional, but why wouldn't you 🫢


πŸ’œ METHODS πŸ’œ

is_or_separated($field)

returns true for the "License" field. that's it. that's the method. she's simple, she's iconic. ⭐


πŸ”₯ SEE ALSO πŸ”₯

  • Debian::Copyright::Stanza::Files inherits most of its functionality from Debian::Copyright::Stanza β€” so yeah, go read that one too, iykyk 🧚

Copyright (C) 2011-12 Nicholas Bamber <nicholas@periapt.co.uk>

This module is substantially based upon Debian::Control::Stanza::Source. Copyright (C) 2009 Damyan Ivanov <dmn@debian.org>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

no warranty bestie!! none!! she's free software and she's doing her best πŸ˜­πŸ’€

and that's the whole page, angel πŸ’– this was perl v5.36.0, dated 2022-10-14, and it's the Debian...:Files(3pm) page from User Contributed Perl Documentation. slay, go write some copyright files πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from