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

Josh Heumann pdx.pm at joshheumann.com
Fri Jun 14 15:28:32 PDT 2013

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/pdx-pm-list/attachments/20130614/de22ad6a/attachment.html>

More information about the Pdx-pm-list mailing list