in reply to match names

I believe opendir requires a directory argument. Try reducing the first two lines to:

opendir TDT, "c:/tdt/src" ;

_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche