PPI::St...structor(3)

πŸ’… PPI::Structure::Constructor πŸ’…

okay bestie, welcome to the PPI::St...structor(3) page from the User Contributed Perl Documentation, no cap πŸ’– this one's short and sweet, so let's gooo.


✨ NAME ✨

PPI::Structure::Constructor β€” it's the anonymous hash or array constructor class. that's it, that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

bestie look how cute these are:

my $array = [ 'foo', 'bar' ];
my $hash  = { foo => 'bar' };

two little anon constructors living their best life, literally iconic πŸ‘‘


🌸 INHERITANCE 🌸

the family tree, and yes we're respecting the lineage πŸ’œ

PPI::Structure::Constructor
isa PPI::Structure
    isa PPI::Node
        isa PPI::Element

so it inherits all the way down through PPI::Structure β†’ PPI::Node β†’ PPI::Element. main character with a whole ancestry fr fr ✨


πŸ’€ DESCRIPTION πŸ’€

okay so PPI::Structure::Constructor is the class used for anonymous ARRAY reference or HASH reference constructors.

that's the whole personality. it's giving "I contain your [ ... ] and { ... } and I'm thriving" 🫢


🧚 METHODS 🧚

ngl this part is lowkey anticlimactic:

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

so everything you get, you get from the parent classes. no extras, no surprises, just vibes πŸ˜­πŸ’–


🌈 SUPPORT 🌈

See the support section in the main module. (go check it out bestie, it's right there πŸ’…)


πŸ‘‘ AUTHOR πŸ‘‘

Adam Kennedy <adamk@cpan.org> β€” legend behaviour honestly, we stan 🫢


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.

no stealing bestie, it's literally free software under the same terms as Perl itself, be normal about it πŸ™ˆ

and that's the whole page, you ate it up, periodt πŸ’œβœ¨

this was perl v5.42.0, dated 2026-01-17 β€” mwah, love u, bye bestie πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from