What are the criteria for the elements you want to process? You want to do the last half of the list, for example? You can use other functions to select some subset of the array. One way is to use an array "slice" to get elements at arbitrary indices:
foreach ( @array[ 5, 9, 16..35 ] )
You get the picture...
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.