ppool app has become a valid OTP application, and we now understand what this means. But wouldn’t it be nice to build an application that actually uses our process pool to do something useful? To push our knowledge of applications a bit further, we will write a second application. This one will depend on
ppool but will be able to benefit from some more automation than our “nagger” from Chapter 19.
This application, which we will name
erlcount, will have a somewhat simple objective: recursively look into some directory, find all Erlang files (ending in .erl), and then run a regular expression over the result to count all instances of a given string within the modules. The results are then accumulated to ...