PPI::Token::Pod(3)

✨ PPI::Token::Pod ✨

okay so bestie, welcome to the PPI::Token::Pod page β€” that's section 3 of the User Contributed Perl Documentation, iykyk πŸ’…. It's a tiny little module with a huge job, and honestly? It ate.


🌸 NAME 🌸

PPI::Token::Pod β€” Sections of POD in Perl documents πŸŽ€


πŸ¦‹ INHERITANCE πŸ¦‹

The family tree, and yes it's giving royal lineage πŸ‘‘:

PPI::Token::Pod
isa PPI::Token
    isa PPI::Element

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: one single PPI::Token::Pod object represents a complete section of POD documentation inside a Perl document. That's it. That's the whole personality. One token, one whole POD block, no cap. 🫢


🌈 METHODS 🌈

Not me pulling up extra methods β€” this class serves up some bonus methods <em>on top of</em> the ones its PPI::Token and PPI::Element parent classes already hand over. Generous queen. πŸ‘‘

πŸ“ merge @podtokens

The merge constructor takes a bunch of PPI::Token::Pod objects and returns a brand-new object that represents one combined POD block made from the content of all of them. Glow-up via fusion fr fr. ✨

It returns a new PPI::Token::Pod object, or undef on error. (Yeah, it can fail. Respect the undef.) 😭

🧚 lines

The lines method takes the string of POD and breaks it into lines, handing them back to you as a list. Chop chop, one line at a time. πŸ’…


πŸŽ€ SUPPORT πŸŽ€

See the support section in the main module. (Yes, that's the whole thing. Go check the main module, bestie.)


πŸ‘‘ AUTHOR πŸ‘‘

Adam Kennedy <adamk@cpan.org> β€” iconic, we stan. πŸ’œ


Copyright 2001 - 2011 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


and that's the whole page, periodt 🫢 this was documented for perl v5.42.0 and stamped 2026-01-17 β€” so if you're reading this way later, hi, hope the POD still slays πŸŒΈβœ¨πŸ’–

πŸ“¦ where this page comes from