[Pdx-pm] module recommendation: regex over data structure

joshua at keroes.com joshua at keroes.com
Fri Jun 14 18:08:01 PDT 2013


https://metacpan.org/module/Data::Visitor::Callback perhaps?

On Jun 14, 2013, at 15:28, Josh Heumann <pdx.pm at joshheumann.com> wrote:

> Hey folks,
> 
> I'm sure this is just me having a lapse of memory, but can anyone recommend a module for running a regular expression over a large and arbitrarily-nested data structure?
> Ideally something like this:
> # %data_structure is a hash containing hashrefs, arrayrefs, strings, but no objects.%data_structure =~ s/foo/bar/g;
> ...would replace foo with bar in all strings at all levels.
> J
> _______________________________________________
> Pdx-pm-list mailing list
> Pdx-pm-list at pm.org
> http://mail.pm.org/mailman/listinfo/pdx-pm-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/pdx-pm-list/attachments/20130614/8584aaaa/attachment.html>


More information about the Pdx-pm-list mailing list