Bug#927285: RFP: libstring-interpolate-perl -- String::Interpolate - Wrapper for builtin the Perl interpolation engine

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#927285: RFP: libstring-interpolate-perl -- String::Interpolate - Wrapper for builtin the Perl interpolation engine

Martin Michlmayr
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 | Threaded
Open this post in threaded view
|

Bug#927285: RFP: libstring-interpolate-perl -- String::Interpolate - Wrapper for builtin the Perl interpolation engine

gregor herrmann-3
On Wed, 17 Apr 2019 17:45:22 +0700, Martin Michlmayr wrote:

> * 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
>

> 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.)

I had a look at the module, and it's trivial to package. [0]

Let's see if there are other solutions to this question, otherwise
I can just go ahead with an upload.


Cheers,
gregor


[0] Actually it's ready for upload, module spelling fixes in the POD,
at https://salsa.debian.org/perl-team/modules/packages/libstring-interpolate-perl

--
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Beach Boys: Wouldn't It Be Nice

signature.asc (981 bytes) Download Attachment