in reply to recursively scanning directories

There exists a Module called File::Recurse, too. Unfortunately it's not in the 5.6 distribution so you need to get it from CPAN, but it maybe usefull for you.
I read about it in Nate Patwardhan's Programming With Perl Modules (from O'Reilly)

Regards... Stefan