On Mon, May 14, 2001 at 03:41:24PM -0400, John Porter wrote:
> 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

As I said in another mail, consider

  $bar[$foo];
  $bar{$foo};

Graham.

Reply via email to