Cover by Fred Hebert

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Chapter 20. The Count of Applications

Our 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 ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required