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. πŸ‘‘

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