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 โญ
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
- fedora 44: perl-PPI 1.284-2.fc44 ยท GPL-1.0-or-later OR Artistic-1.0-Perl
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms