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::Word
  • PPI::Token
  • PPI::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 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