If you want the second version, which is much easier to understand, imo.
But
don’t want the side effect of changing the config hash, then use gsub
without the bang, and assign it to a local variable:
If you want the second version, which is much easier to understand, imo.
But
don’t want the side effect of changing the config hash, then use gsub
without the bang, and assign it to a local variable: