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


in reply to Pure Perl Modules, XS Modules, what's the current trends?

Put Text::CSV_PP and Text::CSV in your app include dir for this specific example and use Text::CSV - since that module already tries to do the best thing:

  1. Try to import Text::CSV_XS
  2. Try to import Text::CSV_PP if the first step failed.

You may want to take a look at modules like Text::CSV to see their approach to conditionally including modules.

Update: Added the steps I was thinking, since it's unlikely that you can read my mind from there.