The purpose of the P5-to-P6 translator is mostly to provide warm
fuzzies. That's how it worked out for a2p, anyway. People knew they
had the translator available, but mostly just translated their stuff
piecemeal by hand. They primarily used the translator for educational
purposes--feed a bit of
On Sat, Jan 21, 2006 at 04:35:00PM +0800, Audrey Tang (autrijus) wrote:
: Moreover, writing a Perl 5 parser in PGE alone is... Very difficult.
: It can be done (eg. PPI), but taking it and emit PIR is a nontrivial
: task that would not magically happen.
Actually, PPI is not a good example of compl
On Sat, Jan 21, 2006 at 10:37:40AM -0700, Joshua Choi wrote:
: Supposed I wanted to refer to $.head using a symbolic reference--how
: would I do it?
:
: my $varname = 'head';
: #1 say $.::($varname);
: #2 say $::('.' ~ $varname);
: #3 something else
I'd say #1 is easiest to grok, insofar
Supposed I wanted to refer to $.head using a symbolic reference--how
would I do it?
my $varname = 'head';
#1 say $.::($varname);
#2 say $::('.' ~ $varname);
#3 something else
On 1/21/06, Rob Kinyon <[EMAIL PROTECTED]> wrote:
> I'm making a few assumptions here:
> 1) Since PGE isn't part of Perl6 (because it's written in PIR), it
> can be used as the parser/lexer/etc. for any language, not just Perl6.
Rules, like regexes, are essentially language neutral. So that's
Rob Kinyon skribis 2006-01-20 23:12 (-0500):
> > $ perl -le '$h{1} = "Perl"; print values h'
> > Perl
> > $ perl -le 'push a, "Perl"; print @a'
> > Perl
> Now, that's an unadvertised feature! I think I need to revisit some golfs ...
Not worth the effort, because length('[EMAIL PROTECTED]') == leng