None of my books have anything about using the substitution regexp with two sets of braces.
in reply to Re^2: Matching multiple digits
in thread Matching multiple digits
Using braces isn't what made the solution possible. Using braces is just a stylistic choice. Using the "e" modifier after the replacement is what made the solution possible.
is equivalent to any of these:
For more on the "e" modifier, see perlre.
If you want to learn what is possible in Perl, start reading the perldoc. Honestly it sounds silly, but take any kind of reference works to the toilet with you (like perldoc printouts), and read them whenever you are NOT trying to solve a problem. You'll gain familiarity with many features, and you'll be able to go back for more details when you need them at your desk.
[ e d @ h a l l e y . c c ]