PPI::St...t::Data(3)

๐Ÿ’– NAME ๐Ÿ’–

okay bestie, so PPI::Statement::Data โ€” that's the PPI::St...t::Data(3) page if you're squinting at your terminal โ€” is literally just the __DATA__ section of a file. that's it. that's the whole girl. she holds the data. she's a whole class about it. slay โœจ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

so like, imagine you got your normal code, and then you got the lil data party at the bottom:

# Normal content

__DATA__
This: data
is: part
of: the
PPI::Statement::Data: object

yeah. all of that? one single PPI::Statement::Data object. iconic behavior fr fr ๐Ÿซถ


๐ŸŒธ INHERITANCE ๐ŸŒธ

the family tree goes like this, and no we are not skipping anybody:

PPI::Statement::Compound
isa PPI::Statement
    isa PPI::Node
        isa PPI::Element

look at that lineage. generational. ๐Ÿ‘‘


โœจ DESCRIPTION โœจ

PPI::Statement::Data is a utility class โ€” think of it as the lil storage container โ€” designed to hold content in the __DATA__ section of a file. and the way it does that is it gives you a single statement to hold all of the data. one statement. all of it. no cap. ๐Ÿ’…


๐ŸŽ€ METHODS ๐ŸŽ€

okay so here's the tea, and it's short tea:

PPI::Statement::Data has no additional methods beyond the default ones that PPI::Statement, PPI::Node and PPI::Element already hand over. that's the whole list. that's it.

BUT โ€” and this is the exciting part โ€” it's expected to gain methods for accessing the data directly, like as a filehandle for example, exactly the same way you'd access the data in the Perl code itself. so like, future plans energy. ๐Ÿ”ฎ


๐Ÿ’€ TO DO ๐Ÿ’€

the vibes-to-do list, verbatim, because I don't gatekeep:

  • Add the methods to read in the data
  • Add some proper unit testing

๐ŸŒˆ SUPPORT ๐ŸŒˆ

see the support section in the main module. (go look, bestie, it's right there ๐Ÿ™ˆ)


๐Ÿ’œ AUTHOR ๐Ÿ’œ

Adam Kennedy <adamk@cpan.org>


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.


okay that's the whole page, you ate that ๐Ÿ“

and that's a wrap on this one, babes โ€” brought to you by perl v5.42.0, dated 2026-01-17, from the User Contributed Perl Documentation crew. go read some __DATA__ and think of me ๐Ÿ’–โœจ๐Ÿงš

๐Ÿ“ฆ where this page comes from