juanbro,
There are a number of reasons why one might use a code ref. You may be dynamically constructing the routine which is not the case here. You may be using something like File::Find where a routine in user land must be called in the module's scope. That is also not the case here. I could go on with reasons why one might do this but out of context, I have no idea.