which warns Ambiguous use of @{foo} resolved to @foo at -e line 1.perl -we'sub foo{66}; die @{ foo }'
Compare once again to
perl -we'die shift =>1' 1 perl -we'die shift() =>1' 1
In reply to Re: Ambiguity of @{ shift }
by Anonymous Monk
in thread Ambiguity of @{ shift }
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |