concept side effect in category erlang

This is an excerpt from Manning's book Erlang and OTP in Action.
Erlang isn’t a “pure” functional language—it relies on side effects. But it limits these to a single operation: message passing by copying. Each message is an effect on the world outside, and the world can have effects on your processes by sending them messages. But each process is, in itself, running an almost purely functional program. This model makes programs much easier to reason about than in traditional languages like C++ and Java, while not forcing you to program using monads as in Haskell.
The function io:format(...) is an example of a function that has side effects. It does return a result, as you can see (the atom 'ok'), but its main purpose is to have an effect on the environment around it. (And by extension, the same is true for your print function.) In Erlang, practically all side effects can be seen as messages (and they usually are in practice, too). In this case, the io:format function prepares the text to be printed and then sends it as a message to the console driver before it returns 'ok'.