Package: wnpp
Severity: wishlist

* Package name    : libstring-interpolate-perl
  Version         : 0.32
  Upstream Author : Brian McCauley, Neil Bowers
* URL             : https://metacpan.org/pod/String::Interpolate
* License         : Same as Perl
  Programming Lang: Perl
  Description     : String::Interpolate - Wrapper for builtin the Perl 
interpolation engine

String::Interpolate provides a neat interface to the solution to that
perenial Perl problem - how to invoke the Perl string interpolation
engine on a string contained in a scalar variable.

Is there a reason this hasn't been packaged?  Does another module
offer the same capability.

I need this to store a regex pattern and do a substitution, e.g.:

my $r = "CBA:$1";
s/$_/safe_interpolate($r)/e;

(The patterns are provided by the user in a config file.)
-- 
Martin Michlmayr
https://www.cyrius.com/

Reply via email to