|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^7: Perl is dying (better sorting than the ST)by demerphq (Chancellor) |
| on Feb 11, 2007 at 11:22 UTC ( #599444=note: print w/ replies, xml ) | Need Help?? |
|
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.
--- $world=~s/war/peace/g
In Section
Meditations
|
|
||||||||||||||||||||||||