Sophie

Sophie

distrib > Mageia > 1 > x86_64 > by-pkgid > ed0a90faf8d21f87d06d873ff0b85f24

perl-Template-Plugin-Subst-0.20.0-1.mga1.noarch.rpm

Description:

Template::Plugin::Subst acts as a filter and a virtual method to carry
out regular expression substitutions with back references on text and
variables in the Template Toolkit.

That's the advantage of this approach over the built-in C<replace>
method. C<replace> doesn't deal with backrefs, so code like this:

[% str = 'foobar' %]
[% str.replace('(foo)(bar)', '$2$1') %]

Sources packages:

Other version of this rpm: