PPI::St...ubscript(3)

✨ NAME ✨

okay so bestie, let me put you on: PPI::Structure::Subscript β€” it's the class for the braces that represent an array or hash subscript πŸ’…

This is PPI::St...ubscript(3) from the User Contributed Perl Documentation, and yes the title got truncated in the header because Perl manpage naming is dramatic like that 🫢


🌸 SYNOPSIS 🌸

# The end braces for all of the following are subscripts
$foo->[...]
$foo[...]
$foo{...}[...]
$foo->{...}
$foo{...}
$foo[]{...}
ngl, the thing to clock here is that comment: for every single one of those lines, the end braces are the subscripts. Not the first ones. The last ones. iykyk πŸ”₯

πŸ¦‹ INHERITANCE πŸ¦‹

the whole family tree, no cap:

PPI::Structure::Subscript
isa PPI::Structure
    isa PPI::Node
        isa PPI::Element

so it's giving PPI::Structure, which is giving PPI::Node, which is giving PPI::Element. generational excellence honestly πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

PPI::Structure::Subscript is literally the class used for square and curly braces that specify one element of an array or hash (or a slice/subset of an array or hash) ✨

that's it. that's the vibe. it's the subscript braces. iconic behavior.


πŸŽ€ METHODS πŸŽ€

PPI::Structure::Subscript has no methods beyond those provided by the standard PPI::Structure, PPI::Node and PPI::Element methods.

not me having zero original methods and still being the moment πŸ’€ no but fr, it inherits everything it needs from its parents and that's valid.


🌈 SUPPORT 🌈

See the support section in the main module. 🫢


πŸ‘‘ 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, slay πŸ’–βœ¨ this was perl v5.42.0, dated 2026-01-17, living its best life in the User Contributed Perl Documentation. periodt. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from