Smart match table

2006-02-07 Thread Robin Houston
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

The definition of 'say'

2006-02-07 Thread Robin Houston
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

Re: Regex extensions?

2002-04-02 Thread Robin Houston
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

Regex extensions?

2002-04-01 Thread Robin Houston
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

Re: What's up with %MY?

2001-09-05 Thread Robin Houston
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