Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by webfiend (Vicar)
on Dec 20, 2007 at 20:32 UTC ( #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
Node Status?
node history
Node Type: note [id://658235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2019-07-22 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (14 votes). Check out past polls.

    Notices?