in reply to Optimized array

It's "easy" solely in terms of the programmer modifying the code. Always putting a comma at the end of the array prevents errors like the following:
# before @array = ( 'dog', 'cat', 'fish' ); # after @array = ( 'dog', 'cat', 'fish' 'bird', 'rabbit' );
Including the trailing comma means when you add new items to the array, you don't have to do anything besides adding the new items.