in reply to removing old dirs

You can find all the examples you want if you search (How to RTFM).

(search words, links work)
remove directory (a direct hit) => Remove Directory

old dir => Finding oldest file in directory Print the oldest file in a directory., Clear out old files in a directory, How to get the oldest file in a directory without reading all files?.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.