Some advice: you learn more by trying to find answers yourself. Then if all else fails, ask here. Searching google and groups.google.com will give you all the answers you probably need as a beginner. Search google for "perl grep files" or "perl grep directories", etc. All we do here, is repeat what was already answered many times before, and is stored in google.(or the searchbox/tutorials here at perlmonks)