### Allan Juul wrote:
### > I'm not sure the quotes really are needed in the regex
### Hi Bart,
### hi Allan,
### you are right, TIMTOWToDI:
### Inserting both $1 and
### a string starting with a number (here: "23" or "2S")
### on the right hand side of a RegEx:
$\ = "\n"; # print -> printl
### s/some (stuff)/$123/g # This won't work.
$_ = "some stuff"; s/some (stuff)/${1}23/g ; print;
$_ = "some stuff"; s/some (stuff)/$1.23/eg ; print;
$_ = "some stuff"; s/some (stuff)/$1."2S"/eg; print;
### prints "stuff23" or "stuff2S", respectively.