| App::KGB::Change(3pm) | User Contributed Perl Documentation | App::KGB::Change(3pm) |
App::KGB::Change - a single file change
my $c = App::KGB::Change->new(
{ action => "M", prop_change => 1, path => "/there" } );
print $c;
my $c = App::KGB::Change->new("(M+)/there");
App::KGB::Change encapsulates a single path change from a given change set (or commit).
App::KGB::Change overloads the "" operator in order to provide a default string representation of changes.
More-or-less standard constructor.
It can take a hashref with keys all the field names (See ).
Or, it can take a single string, which is de-composed into components.
See for examples.
Example:
foo/b
foo/x
foo/bar/a
would return 'foo' and the paths would be trimmed to
b
x
bar/a
| 2022-10-15 | perl v5.34.0 |