View on
Peter Flanigan > Module-Provision > Module::Provision::TraitFor::UpdatingContent



Annotate this POD



Open  0
View/Report Bugs
Module Version: v0.42.1   Source  

Name ^

Module::Provision::TraitFor::UpdatingContent - Perform search and replace on project file content

Synopsis ^

   use Moose;

   extends 'Module::Provision::Base';
   with    'Module::Provision::TraitFor::UpdatingContent';

Description ^

Perform search and replace on project file content

Configuration and Environment ^

Requires the following attributes to be defined in the consuming class; appldir

Defines no attributes

Subroutines/Methods ^


   $self->substitute_version( $path, $from, $to );

Substitutes the $to string everywhere the $from pattern occurs in the $path file. The $path argument should be of type File::DataClass::IO

update_copyright_year - Updates the copyright year in the POD

   $exit_code = $self->update_copyright_year;

Substitutes the existing copyright year for the new copyright year in all files in the MANIFEST

update_version - Updates the version numbers in all files

   $exit_code = $self->update_version;

Substitutes the existing version number for the new version number in all files in the MANIFEST



Returns it's input args by default. Can be modified by applied traits



Does nothing by default. Can be modified by applied traits

Diagnostics ^


Dependencies ^


Incompatibilities ^

There are no known incompatibilities in this module

Bugs and Limitations ^

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Acknowledgements ^

Larry Wall - For the Perl programming language

Author ^

Peter Flanigan, <>

License and Copyright ^

Copyright (c) 2017 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

syntax highlighting: