Danger! If you ever encounter a file called "10000000000000000.file.a" your program will run out of memory and crash. Perl's arrays are not sparse so when you ask for $array[10000000000000000] you're going to allocate a great hunk of memory.
-sam
Comment on Re^2: iterating over array to create smaller arrays based on pattern match