Template::Flute::Filter::Replace - Substitutes literal text in a string.
$replace_filter = Template::Flute::Filter::Replace->new(options => { from => 'foo', to => 'bar', }); $barbar = $replace->filter('foobar');
The replace filter locates a substring within a string and substitutes each occurence with another string.
Initializes object with replace options.
Carries out the actual substitution and returns the filtered value.
Stefan Hornburg (Racke), <racke@linuxia.de>
Copyright 2012-2014 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Template::Flute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Flute
CPAN shell
perl -MCPAN -e shell install Template::Flute
For more information on module installation, please visit the detailed CPAN module installation guide.