I see. Pardon me, I assumed anything with a :: was a module.I still do not know how to integrate it though. What I meant for the file name was I used a variable in my second part but I'm not sure how the "next unless -f and /\.log$/" has a variable that I can use for my code in the second part.