Damian Conway wrote: > Bzzzt! The line: > > %MY::{'$x'} = \$z; > > assigns a reference to $z to the *symbol table entry* for $x, not to $x itself. So I should have said: %MY::{'$x'} = $z; That's pretty magical stuff isn't it? Sorry I used the wrong syntax. I'm just taking it from your "Perl 6 Overview" PDF slides. This stuff changes *fast*, eh? If I want to bind a sub, do I use: %MY::{'&die'} = &my_die; # reference to sub my_die? (from slides) or %MY::{'&die'} = my_die; # magical symbol table assignment rule? > "3, 1, 3" is the correct answer. That's what I thought. Dan's not going to be happy. ;) - Ken
- RE: What's up with %MY? Garrett Goebel
- Re: What's up with %MY? Ken Fox
- Re: What's up with %MY? Dan Sugalski
- Re: What's up with %MY? Ken Fox
- Re: What's up with %MY? Bryan C . Warnock
- RE: What's up with %MY? Garrett Goebel
- Re: What's up with %MY? Bryan C . Warnock
- Re: What's up with %MY? Bryan C . Warnock
- Re: What's up with %MY? Damian Conway
- Re: What's up with %MY? Bryan C . Warnock
- Re: What's up with %MY? Ken Fox
- Re: What's up with %MY? Bryan C . Warnock
- Re: What's up with %MY? Dan Sugalski
- Re: What's up with %MY? Ken Fox
- Re: What's up with %MY? Bryan C . Warnock
- Re: What's up with %MY? Dave Mitchell
- Re: What's up with %MY? David L. Nicol
- Re: What's up with %MY? Dan Sugalski