in reply to functional functions
I found out early on that I used around 30 'functions' over and over in every day working code. When I found myself jumping through hoops to do something, I usually found that there was already a Perl built-in that either was specific for the problem at hand or at least did 85% of the heavy lifting for me.
Over the years I have built my repertoire up to maybe 60 more functions. (These are built-ins that I have used often enough so that I recognize the hallmarks of the 'This is an xxx() kind of problem, go read perlfunc xxx' when it crops up in my coding.) Over the years, I have been primarily doing data munging and system administration, so my tool set is somewhat asymmetric. But, I suspect that this is not unusual, everyone knows the functions that are specific to the Usual Problem that they face every day.
I have encountered the same phenomena in CPAN as well. I have settled on a core of maybe 15 modules that address my run-of-the-mill problems, and around 100 that have been used a couple or three times. I may not have not used them much, but when I needed it they were Just The Thing the Doctor Ordered(tm).
I love the fact that TIMTOWTDI is embedded in the fabric of the Perl. I may not take advantage of all of the alternate solutions available (this worked last time ....), but when you need it, the fact that there are alternative solutions designed into the language can be a glorious thing. It keeps the Language from growing stale -- I always have some new nook to explore.
----
I Go Back to Sleep, Now.
OGB
|
|---|