PPI::To...eparator(3)
π PPI::Token::Separator π
okay so bestie, welcome to the PPI::Token::Separator page β this is part of PPI::To...eparator(3), aka the User Contributed Perl Documentation, and it's literally all about the __DATA__ and __END__ tags. yes THEM. the little magic words that say "k bye" to your code. π
β¨ NAME β¨
PPI::Token::Separator β The __DATA__ and __END__ tags π¦
πΈ INHERITANCE πΈ
the family tree, and yes it's giving royalty:
PPI::Token::Separator
isa PPI::Token::Word
isa PPI::Token
isa PPI::Element
so like, PPI::Token::Separator is a PPI::Token::Word, which is a PPI::Token, which is a PPI::Element. generational excellence fr fr π
π DESCRIPTION π
okay so on the surface? this thing looks exactly like a normal PPI::Token::Word object. same vibe, same energy, you'd never clock it. π
BUT. when the __DATA__ and __END__ compiler tags show up at the beginning of a line (on supposedly their own line), these tags stop being words and become file section separators. periodt. π«
what they're saying is: the time for Perl code is OVER bestie. everything after this point in the file is dedicated to something else β that's actual data in the case of __DATA__ β or to literally nothing at all in the case of __END__. no cap.
β οΈ heads up: the original says "when the__DATA__and__END__compiler tags appear at the beginning of a line (on supposedly) their own line" β so that's the condition, keeping it exactly as stated, no extra guesses from me π
π οΈ METHODS π οΈ
bestie... this class has no methods beyond what is provided by its parent classes. that's it. that's the whole tea. π
the parents doing all the heavy lifting are:
PPI::Token::WordPPI::TokenPPI::Element
so everything you get, you get from them. iconic inheritance behaviour honestly π«Ά
π«Ά SUPPORT π«Ά
See the support section in the main module. (yes, that's the whole thing β go peek at the main module, it's got you π)
π 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.
and that's the whole page bestie, you ate that reading session fr fr πβ¨
this was PPI::To...eparator(3) from perl v5.42.0, dated 2026-01-17 β mwah, go forth and separate your file sections ππ
π¦ 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