G'day Soren,

I believe that I've warned you in the past about working directly with Cygwin's System Perl (/usr/bin/perl). If you update to the latest Cygwin Perl (v5.40.2), you'll get Text::CSV_XS version 1.60. I do Cygwin updates regularly; most recently was Friday evening (~24hrs ago).

$ /usr/bin/perl -Mstrict -Mwarnings -E ' use Text::CSV_XS; say "Perl version: $^V"; say "Perl location: $^X"; say "Text::CSV_XS version: $Text::CSV_XS::VERSION"; say "Text::CSV_XS location: $INC{q{Text/CSV_XS.pm}}"; ' Perl version: v5.40.2 Perl location: /usr/bin/perl Text::CSV_XS version: 1.60 Text::CSV_XS location: /usr/lib/perl5/vendor_perl/5.40/x86_64-cygwin-t +hreads/Text/CSV_XS.pm

I'm also reasonably certain that I recommended using Perlbrew. I updated to the lastest Perl (v5.42.0) this morning (~12hrs ago); I also installed the latest Text::CSV_XS from CPAN (version 1.61) along with many other modules.

Using Perlbrew to switch between Perl versions, and using the above code but starting with perl -Mstrict -Mwarnings -E (i.e. no /usr/bin/), here's the output using recent Perl versions:

Perl version: v5.38.0 Perl location: /home/ken/perl5/perlbrew/perls/perl-5.38.0/bin/perl Text::CSV_XS version: 1.50 Text::CSV_XS location: /home/ken/perl5/perlbrew/perls/perl-5.38.0/lib/ +site_perl/5.38.0/cygwin-thread-multi/Text/CSV_XS.pm Perl version: v5.40.0 Perl location: /home/ken/perl5/perlbrew/perls/perl-5.40.0/bin/perl Text::CSV_XS version: 1.54 Text::CSV_XS location: /home/ken/perl5/perlbrew/perls/perl-5.40.0/lib/ +site_perl/5.40.0/cygwin-thread-multi/Text/CSV_XS.pm Perl version: v5.42.0 Perl location: /home/ken/perl5/perlbrew/perls/perl-5.42.0/bin/perl Text::CSV_XS version: 1.61 Text::CSV_XS location: /home/ken/perl5/perlbrew/perls/perl-5.42.0/lib/ +site_perl/5.42.0/cygwin-thread-multi/Text/CSV_XS.pm

Consider leaving Cygwin's System Perl for Cygwin's use and start using Perlbrew for your own use and experimentation.

I'm fairly sure that solutions other than Perlbrew exist. I'm not familiar with these; perhaps another monk can advise you.

— Ken


In reply to Re: New release of Text::CSV_XS won't build on Windows, prob a gcc input error (CygwinPerl) by kcott
in thread New release of Text::CSV_XS won't build on Windows, prob a gcc input error (CygwinPerl) by Intrepid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.