Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Pure Perl Modules, XS Modules, what's the current trends?

by webfiend (Vicar)
on Dec 20, 2007 at 20:32 UTC ( [id://658235]=note: print w/replies, xml ) Need Help??


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.

  • Comment on Re: Pure Perl Modules, XS Modules, what's the current trends?

Replies are listed 'Best First'.
Re^2: Pure Perl Modules, XS Modules, what's the current trends?
by skazat (Chaplain) on Dec 20, 2007 at 21:32 UTC

    Wow!

    Thanks for showing me that - the last time I did my research on Text::CSV, it was before this recent 1.00 release, and the version available was very, very old and had fragmented alternatives (Basically, Text::CSV_XS and Text::CSV_PP) - it's nice that the anarchy that is CPAN and it's users figured it all out :)

    Well, that solves at least one problem on my checklist and gives me something to go on for the rest)

    ++

     

    -justin simoni
    skazat me

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://658235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found