in reply to Perl6: S2 identifier and $ special var questions
In S02 synopsis, section "Names and Variables", I see:
$<foo> match variable, short for $/{'foo'}
So, when you say my $<-var>;, you are actually initializing the key -var of the hash $/.
Here's what I see in recent rakudo:
>> perl6 -v This is Rakudo Perl 6, version 2011.07-2-g1b7dd12 built on parrot 3.6. +0 RELEASE_3_6_0 >> perl6 > my $<-var> = 42 42 > $/ -var 42 > $/.WHAT Hash()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl6: S2 identifier and $ special var questions
by rir (Vicar) on Sep 14, 2011 at 17:26 UTC | |
by TimToady (Parson) on Sep 14, 2011 at 18:19 UTC |