The table of smart matches in S4 has this:
...
Any Str string equality match if $_ eq $x
...
Any Rule pattern matchmatch if $_ ~~ /$x/
...
By my (and Damian's) interpretation of the table, this means
that "string" ~~ /rule/ would be inte
Late last year I implemented a few Perl 6 features in Perl 5.
A couple of things have emerged that may be relevant to the
Perl 6 design. Certainly they're things that I'm curious about.
I'll send the other one in a separate message to keep the
threads apart: this message is about 'say'.
The defini
Interesting!
I think you're imagining that it will be possible to define something
like an EBNF grammar. Is that right? Will you be able to get a parse
tree out, rather than just a flat list? (There's certainly an issue
with my current implementation about what to do with the strings
captured b
Are there any plans to change the regex syntax for Perl 6?
I ask because I've spent the last few days playing with PCRE,
and I added a rather powerful extension to it as an experiment.
Details at http://www.puffinry.freeserve.co.uk/regex-extension.html
Named capture-blocks are *long* overdue as
Ken Fox wrote:
> Modifying the caller's environment:
>
> $lexscope = caller().{MY};
> $lexscope{'&die'} = &die_hard;
>
> is especially annoying because it means that I can't
> trust lexical variables anymore.
You think you can trust them now? :-)
The PadWalker module (on CPAN) allows a su