Damian Conway wrote [and John Porter reformats]:
>  
> @bar[$foo]; # Access element int($foo) of array @bar
> %bar{$foo}; # Access entry "$foo" of hash %bar
> @bar{$foo}; # Syntax error
> %bar[$foo]; # Syntax error

And why is that superior to:

  @bar[$foo]; # Access element int($foo) of array @bar
  %bar{$foo}; # Syntax error
  @bar{$foo}; # Syntax error
  %bar[$foo]; # Access entry "$foo" of hash %bar

???

-- 
John Porter

Reply via email to