Integrating a CPAN a module in your own module

jonasbn on 2007-01-23T14:49:34

With one of my clients we have a module we use all the time for talking to a web service back-end.

The module helps us access the web services in a uniform manner without too much hassle, it validates whether we have set the right parameters and it then generates the XML and calls the service.

One of my co-workers expanded it's capabilities for validating parameters, so we in addition to: mandatory and optional, could specify: one_of.

I had requested that the module was moved from it's current place (deeply nested in an application) to be accessible as a regular module.

So I got the assignment of setting this up, inspired by the new addition of one_of, I through in the capability of using Data::FormValidator profiles, with great ease...

I cannot imagine how much this gave us of flexibility and functionality for specifying the API's in more detail - and it was so easy integrating this particular CPAN package.