Re: RFC 110 (v3) counting matches

[email protected] (Tom Christiansen)
Newsgroups perl.perl6.language.regex
Message-ID <3813.967587695@chthon>
>p.s. Has anybody already suggested that we ought to have a nicer
>solution to execute perl code inside a string, replacing "${\(...)}" and
>"@{[...]}", which also won't ever win a beauty contest?  Oops, wrong
>mailing list.

The first one doesn't work, and never did.  You want 
@{[....]} and @{[scalar ....]} instead.

And I can't see you coming up with anything that's "better" than
this, since this already works and follows directly from understanding
of Perl.  Too often on these lists anything that "follows directly"
one seeks to special-case with brand-new syntax.  This is a poor
general principle.

This has nothing to do with regexes (although it could if we had
@foo normally interpolate into patterns with $" = '|' instead, which
would break that), so when you find a better list to discuss it on,
I'll mumble again.

--tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.