Am 18.08.2010 01:33, schrieb Darren Duncan:
David H. Adler wrote:
Hm. So how are valid parameter names defined? Identifiers in perl6 seem
to be composed of letters, digits and underscores (and hyphens and
apostrophes between letters).
That's correct.
Are parameter names defined differently
One thing also worth noting is that $1 is an alias to $/[1].
perl6
> my $1 = 2; say $1;
2
> my $1 = 2; say $/[1];
2
Also, $ is an alias to $/. This would make them rather difficult
to use in parameters, IMO.
--
John Harrison
On Wed, Aug 18, 2010 at 3:12 AM, Moritz Lenz wrote:
>
>
> Am 18.0