I didn't bother to search CPAN at the time because it was just a quick script.
One of the keys to writing a quick script quicker is to write less of it. Get familiar with interesting CPAN modules, and have them installed.
Most of my columns are merely wrappers around good CPAN modules. So, I write a dozen lines of code, and call hundreds of lines of previously tested code. That's good leverage. (I even wrote a column about that. {grin})