in reply to Re: Re^3: @ in regex, or not?
in thread @ in regex, or not?

The regex parser has some rather convoluted heuristics that it follows to decide whether $ or @ is followed by a variable name. One side effect of this is that /[$]/ is an error.

The only real documentation of this deep magic is in the source code (simply search for "weight" as it is only used on that code -- in toke.c, BTW).

        - tye (but my friends call me "Tye")