Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I thought I heard Jeff Zucker [cpan.org], AKA jZed [perlmonks.org] on Perlmonks, was set on taking over this module but I think "he didn't find it worthwhile already to release a new version". The last is paraphrased from something he told me in the Chatterbox. I'm not sure any more that this was the module he was talking about, but I think it was.

    So... Ask him?
  • If Jeff doesn't want to take over the module, I can apply the patch and release a new version. I don't want to maintain it, but I do help modules find new homes. :)
    • So noted. I think he's in - it's listed on his CPAN author page as a module registered to him. I haven't heard back from him yet, but I imagine I will soon.

      -sam

  • Hi Sam,

    I know I am late to the party, but try installing PerlIO::eol and give the following a try:

    my $csv = Text::CSV_XS->new ({ binary => 1, eol => $/ });
    open my $io, "<:raw:eol(Native)", $filename or die "$filename: $!";
    while (my $row = $csv->getline($io)) {
      ...
    }

    Text::CSV_XS can use an IO::Handle object, and the IO::Handle object can convert line endings on the fly for you using PerlIO::eol. This also has the added benefit of handling fields with embedded newlines.