http://qs321.pair.com?node_id=1229263

nysus has asked for the wisdom of the Perl Monks concerning the following question:

As a less clueless Perl programmer, I had the attitude that I should just use a bunch of CPAN modules to do basic tasks like file slurping. Why write five lines of code when you can write two? As I started contributing to CPAN, I learned that there can be unwanted overhead in relying upon CPAN modules.

My basic attitude now is if it's some code that only I will use, I'll take the kitchen sink approach and stuff in whatever CPAN modules I can to make jobs easier. But if it's a CPAN module I'm contributing, I'll try to be more circumspect and put in some extra effort and try to stick to core modules. For example, it seems like it's smarter to stick with File::Spec instead of Path::Tiny.

I'm wondering if other more seasoned Perl programmers take the same approach. If not, what criteria do you use to determine when to use/not use a CPAN module?

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks