[Quoting Richard Levitte - VMS Whacker, on February 21 2003, 18:05, in "Re: [cvs.lp.se
#14] "]
> jvromans> Yes, but it would be "$1value" instead of "\1value".
>
> Is that a must? I know that's Perly syntax on the value side, but
> I've never liked it much, probably because I've used sed too much :-).
In Perl, one refers to the result of a match with $1, $2 and so on,
inside and outside the match.
There's one exception, when you want to use it in the match itself:
/(foo|bar)\1/
will match foofoo and barbar.
> Hey, we could always vote :-).
Well, in this case it doesn't matter much, since it's not Perl but
PCRE we're dealing with... OTOH, why not embed Perl in ctwm and use
real Perl to drive the configuration[1].
-- Johan
[1] I'm more serious that I may sound. Often I've wanted to have a
dynamic configuration depending on screen size, system type, what
windows are mapped, and so on.