1PPI::Transform::UpdateCUospeyrriCgohntt(r3i)buted Perl DPoPcIu:m:eTnrtaantsifoonrm::UpdateCopyright(3)
2
3
4

NAME

6       PPI::Transform::UpdateCopyright - Demonstration PPI::Transform class
7

SYNOPSIS

9         my $transform = PPI::Transform::UpdateCopyright->new(
10             name => 'Adam Kennedy'
11         );
12
13         $transform->file('Module.pm');
14

DESCRIPTION

16       PPI::Transform::UpdateCopyright provides a demonstration of a typical
17       PPI::Transform class.
18
19       This class implements a document transform that will take the name of
20       an author and update the copyright statement to refer to the current
21       year, if it does not already do so.
22

METHODS

24   new
25         my $transform = PPI::Transform::UpdateCopyright->new(
26             name => 'Adam Kennedy'
27         );
28
29       The "new" constructor creates a new transform object for a specific
30       author. It takes a single "name" parameter that should be the name (or
31       longer string) for the author.
32
33       Specifying the name is required to allow the changing of a subset of
34       copyright statements that refer to you from a larger set in a file.
35
36   name
37       The "name" accessor returns the author name that the transform will be
38       searching for copyright statements of.
39

TO DO

41       - May need to overload some methods to forcefully prevent Document
42       objects becoming children of another Node.
43

SUPPORT

45       See the support section in the main module.
46

AUTHOR

48       Adam Kennedy <adamk@cpan.org>
49
51       Copyright 2009 - 2011 Adam Kennedy.
52
53       This program is free software; you can redistribute it and/or modify it
54       under the same terms as Perl itself.
55
56       The full text of the license can be found in the LICENSE file included
57       with this module.
58
59
60
61perl v5.28.1                      2017-06-22PPI::Transform::UpdateCopyright(3)
Impressum