$a->[...];
$h->{...};
This has always been the correct syntax. The forms you show only worked because of an ommision.
There was a recent thread discussing this %h->{foo} vs. $h{foo}.. which you may like to read as it will save it being repeated again here.
In reply to Re: The syntaxes @a->[...] and %h->{...} have now been deprecated
by BrowserUk
in thread The syntaxes @a->[...] and %h->{...} have now been deprecated
by rakesh1377
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |