in reply to newbie parsing question

The replies above will help you maintain the code as it is, and pull the filenames out of the text. If you plan to do path or filename manipulation, however, I'd suggest taking a look at the File:: modules (specifically File::Spec and File::Path).

Best of luck.