Brent 'Dax' Royal-Gordon writes:
> "If the inside of a hash indexer consists entirely of \w characters, it
> will be interpreted as the name of a hash key. If you want it to call a
> subroutine instead, add a ~ stringifying operator to the beginning of
> the call, or a pair of parentheses to the end of it." Simple, clear,
> and doesn't shift around based on subroutine definitions. (It's not
> what Perl 5 does, but that's Perl 5's fault.)
It's not? With the exception of a leading -, I thought that was
precisely what Perl 5 did. It's not, currently, what Perl 6 does.
Just to recap (I can't tell if you were misunderstanding or not...),
%foo{bar} is equivalent to %foo{bar()} ; %fooÂbar is equivalent to
%foo{'bar'}.
Luke