PPI::Tr...opyright(3)
π PPI::Transform::UpdateCopyright β the vibe
okay bestie, so this is the page for PPI::Transform::UpdateCopyright, straight out of the User Contributed Perl Documentation section of your friendly neighbourhood man pages. buckle up π
β¨ NAME β¨
PPI::Transform::UpdateCopyright β a Demonstration PPI::Transform class. yes, demo. it's giving "show don't tell" π
πΈ SYNOPSIS πΈ
my $transform = PPI::Transform::UpdateCopyright->new(
name => 'Adam Kennedy'
);
$transform->file('Module.pm');
that's literally it. two lines and a dream π¦
π§ DESCRIPTION π§
so PPI::Transform::UpdateCopyright is a demonstration of a typical PPI::Transform class. it's the tutorial baddie of the family.
what it actually does: this class implements a document transform that takes the name of an author and updates the copyright statement to refer to the current year, if it doesn't already do so. no cap. it checks first, it doesn't just bulldoze in there π
π METHODS π
π« new
my $transform = PPI::Transform::UpdateCopyright->new(
name => 'Adam Kennedy'
);
the new constructor creates a fresh transform object for one specific author. it takes a single name parameter, and that should be the name (or a longer string, she's flexible β¨) for the author.
specifying the name is required, bestie. why? so you can change a subset of copyright statements β the ones that refer to you β out of a whole larger set sitting in a file. it's giving "only touch what's mine" π«Ά
π« name
the name accessor returns the author name that the transform will be searching for copyright statements of. that's it, that's the method. simple. iconic. periodt.
π TO DO π
- May need to overload some methods to forcefully prevent Document objects becoming children of another Node.
(yes that's the actual to-do item, verbatim, i'm not about to paraphrase a to-do list π)
π«Ά SUPPORT π«Ά
See the support section in the main module.
π AUTHOR π
Adam Kennedy <adamk@cpan.org>
π COPYRIGHT π
Copyright 2009 - 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 π this one shipped with perl v5.42.0, dated 2026-01-17, and it ate. no notes. slay πβ¨
π¦ 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