Re: RFC 332 (v1) Regex: Make /$/ equivalent to /\z/ under the '/s' modifier
[email protected] (Hugo) Fri, 29 Sep 2000 09:55:06 +0100
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <[email protected]> |
In <[email protected]>, Nathan Wiger writes: :> Is $$ the only alternative, or did I miss more? I don't think I've even :> seen this $$ mentioned before? : :$$ is not a suitable alternative. It already means the current process :ID. It really cannot be messed with. And ${$} is identical to $$ by :definition. Well, not quite. First, writing $var as ${var} is the usual and common way to disambiguate where there is a problem; second, $$ is rarely used in a regexp pattern. We can easily migrate perl5 scripts by translating $$ to ${$} throughout. There is no problem here. Hugo