If perl knew the array was going to be thrown away at the end of the statement, and that all indexed look ups were within the bounds of the original.
Its a big if, hence the reason I mentioned Python's tuples, which could be seen from a perl perspective to be a form of compiler hinting, telling the compiler that an AV need not be constructed. You could prototype the syntax using a RO AV for instance.
In reply to Re^7: Perl is dying (better sorting than the ST)
by demerphq
in thread Perl is dying
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |