in reply to Complicated Hash Construction.
There's no problem when you predeclare %hash because perl knows that @hash{ } is a hash slice and not an array.
Those more knowledgable about the Perl internals can comment on why this syntax can't be DWIM'd into the interpreter, but I suspect it will not be an issue in Perl 6.
Gary Blackburn
Trained Killer
|
|---|