[Pdx-pm] module recommendation: regex over data structure
pdx.pm at joshheumann.com
Fri Jun 14 15:28:32 PDT 2013
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...
More information about the Pdx-pm-list