CPAN::C...::Entry(3)
π NAME π
CPAN::Changes::Entry β it's giving "a change entry in a CPAN Changes file" and honestly? Iconic. π¦
β¨ SYNOPSIS β¨
my $entry = CPAN::Changes::Entry->new(
text => 'A change entry'
entries => [
'A sub-entry',
'Another sub-entry',
],
);
π DESCRIPTION π
Okay so listen, bestie. A changelog is literally made up of one or more releases, and this object? It's giving you access to ALL the key data that embodies a release. We're talking the version number, the date of release, and all of the changelog information lines. No cap. It's the whole package, periodt. πββοΈ
πΈ ATTRIBUTES πΈ
text
This is literally just the text of the change entry. Simple as that, bestie. The actual words. The ~content~. π
entries
This is an array ref of sub-entries under this change entry. So like, if your change has smaller changes living inside it? That's where they're at. Vibe check passed. β¨
line
This is the line number that the change entry starts at. So you know exactly where to find it in your file. Lowkey useful, ngl. π
π METHODS π
serialize
Returns the changes entry in string form. It's giving "I'm a string now" energy. Slay. π
clone
Returns a new release object with the same data. And plot twist? You can give it any attributes to set them differently in the new object. So it's like a clone but make it custom. Iconic behavior. π§
has_entries
Returns true if there are sub-entries for this entry. So it's like, "do I have sub-entries? Yes or no." A simple vibe check. π―
find_entry
Accepts a string or a regex, returns a matching sub-entry object. So you can search for your sub-entries by text or by regex. Highkey useful. π
add_entry
Adds a changes sub-entry. And it accepts a changes sub-entry object or a string. So like, you can add it however you want. Flexible queen behavior. πββοΈ
remove_entry
Given a string or a changes entry object, removes the entry from the release. So you can remove by text or by object. It's giving "bye bye" energy. π«Ά
π¦ SEE ALSO π¦
CPAN::Changesβ the parent lib, go check it out bestie. π
π AUTHORS π
See CPAN::Changes for authors. They're the real MVPs. π
π COPYRIGHT AND LICENSE π
See CPAN::Changes for the copyright and license. Legal stuff, but make it cute. π
And that's the whole thing, bestie! This page is from perl v5.42.0 dated 2025-07-25, and honestly? You're now a CPAN::Changes::Entry expert. Go forth and slay. π
β¨π
π¦ where this page comes from
- fedora 43: perl-CPAN-Changes 0.500005-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms