in reply to Lost arrays

Have you tried defining a scope for these 'lost' variables? Try re-writing the script with 'stict' and 'warnings' in force, i.e. in this case having the scope of each variable defined, and then see where the arrays go missing.

rdfield