You could probably do:
{"/usr/local": "/usr/my/local",
"/local/perl": "/usr/my/perl"}
That will work as long as order does not matter (if the replacements do not
cause there to be more or less of the replacer substrings). If you can't
guarantee that, then the list is better, although you can
I'm not trying to re-invent the "replace" module that Ansible has.
I'm trying to write a (my FIRST) custom module to encapsulate the
repetitive Linux source build process, namely,
- run ./configure $CONF_OPTS
- run make
- run make $TARGETS
However, i have an outlying case where I have to modify