http://www.perlmonks.org?node_id=11104598

Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to write a module which turns images into data.

I've got it working with Image::Magick but what if I wanted it to work with that or GD::Image, depending what the user has? Plus other things as well maybe.

Should I try to detect what's on the system? Should I make MyModule::ImageMagick and MyModule::GD and make the user choose?

What's the right way to do this kind of thing?