Tangeri...HookData(3)
π Tangerine::HookData(3) π
okay so bestie, welcome to the Perl manual page for Tangerine::HookData β it's giving an envelope for data returned from a hook β¨ and honestly? it's iconic.
β¨ NAME β¨
Tangerine::HookData β an envelope for data returned from a hook π
πΈ SYNOPSIS πΈ
my $data = Tangerine::HookData->new(
modules => {
'ExtUtils::MakeMaker' => [
Tangerine::Occurence->new(
line => 3,
version => '6.30',
),
],
},
hooks => [
Tangerine::Hook->new(
type => 'compile',
run => \&Tangerine::hook::myhook::run,
),
],
children => [ qw/myhook_statement with_args ;/ ]
);
like, that's the whole vibe right there π¦
π DESCRIPTION π
Hooks use this class to encapsulate their results before returning them to the main Tangerine object. no cap, that's literally its whole job.
A hook may return:
- a hash reference of module names pointing to lists of
Tangerine::Occurenceobjects, - a list reference of
Tangerine::Hookobjects that should be added to the list of hooks to run, - and a statement which should be parsed in the context of the current line.
periodt. π
π METHODS π
π children
Returns or sets the statement to be analysed. This is a simple list reference of significant children. Tangerine statements are created from PPI::Statement's schildren method. so it's lowkey the PPI glue, iykyk π§
π¦ hooks
Returns or sets a list reference of Tangerine::Hook hooks to be run. slay.
π modules
Returns or sets a hash reference of module names pointing to list references of Tangerine::Occurence objects. that's the receipts right there π
β type
Forces the data type, overriding the hook's type value. The possible values being package, compile, or runtime. those are the only three, bestie, don't try to be cute with it π
π₯ SEE ALSO π₯
TangerineTangerine::HookTangerine::OccurencePPI::Statement
go read those next, they're all part of the same friend group π«Ά
πΈ AUTHOR πΈ
Petr Ε abata <contyk@redhat.com> β we love a legend π
π COPYRIGHT AND LICENSE π
Copyright (c) 2014-2016 Petr Ε abata
See LICENSE for licensing details.
and that's the whole page, bestie!! this lil cutie came from perl v5.42.0, dated 2025-07-25 β so it's β¨ fresh β¨ and you can find it chilling in the Perl manual section 3 ππ π¦
π¦ where this page comes from
- fedora 43: perl-Tangerine 0.23-27.fc43 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms