Arrow operator and arrays
When the left argument to the arrow operator "->" is an
array, or the "scalar" operator operating on an array, the
result of the operation must be considered erroneous. For
example:
@x->[2]
scalar(@x)->[2]
These expressions will get run-time errors in some future
release of Perl.