Modular scripting

Hi,

I am currently working on a project involving writing reusable modular components from basic like generic sort script to doing rigorous data matching involving millions of data in a flat file.

Can you help me understand what sort of architecture and scripting languages can be explored??

Regards,
Dikesh.

use perl