From andrew+pdxpm at afresh1.com Mon Feb 17 12:41:30 2020 From: andrew+pdxpm at afresh1.com (Andrew Hewus Fresh) Date: Mon, 17 Feb 2020 12:41:30 -0800 Subject: [Pdx-pm] Meeting Location for giving a talk? Topic ideas? Message-ID: <20200217204130.GV87901@us.holligan.net> At the last Perlmonger meetup, Eric and I were talking about doing some talks and finding a location to do that to try to stir up interest. Anyone have thoughts on place to host or things to talk about? I'm going to ask Lyle to see if he can host some at Collective Agency, but he runs a functional programming meetup, so I don't think he wants to take on hosting full-time. We came up with that we thought we could talk about without too much trouble, but if you have things you'd like to hear about, or be able to talk about, even better. * Inheritance in Perl (This would be an updated version of a talk I gave at pdx.pm already) http://cvs.afresh1.com/~andrew/talks/inheritance_in_perl_pdx_pm * Perltidy, what it is, new features * Intro to DBIx::Class * Perl Worst Practices * Intro to Mojolicious * Intro to Dist::Zilla * What is CPANTesters? * Plenv and Carton * Intro to Plack Middleware * Intro to Mocking We do have an old Meeting Wishlist, not sure if that gives y'all ideas. https://github.com/PortlandPerlMongers/portlandperlmongers.github.io/wiki/MeetingWishlist l8rZ, -- andrew - http://afresh1.com A printer consists of three main parts: the case, the jammed paper tray and the blinking red light. From andrew.clapp at gmail.com Fri Feb 28 18:27:34 2020 From: andrew.clapp at gmail.com (Andrew Clapp) Date: Fri, 28 Feb 2020 18:27:34 -0800 Subject: [Pdx-pm] Parsing CSV Files Message-ID: Hello folks, I'm seeking advice on a module if anyone out there knows of something that's already there. I'm looking at a few different options from cpan but I'm stuck on finding a ready made solution for this one. There's gotta be something I missed. Here's the problem in brief. I have to parse a CSV file, but it's double-quote wrapped, with commas in the fields. Example with a header... "ID","name","desc","detailed desc" "1234","thing","A nifty phrase that's easy to read","some, list, of things, with commas, not so easy" I've tried Pasrse::CSV which looks promising, and tried doing it myself, which works, but it's kludgey beyond useful legibility. I believe there's a good way to do this that I've not seen yet. Ideas? Thanks for looking. -ASC -- Andrew S. Clapp Aeonic Enterprises "They're always searching for the magic bullet, and actually it's the culmination of a lot of different things." -Ken Fischer From andy at petdance.com Fri Feb 28 18:30:03 2020 From: andy at petdance.com (Andy Lester) Date: Fri, 28 Feb 2020 20:30:03 -0600 Subject: [Pdx-pm] Parsing CSV Files In-Reply-To: References: Message-ID: Text::CSV_XS is pretty much the standard. > On Feb 28, 2020, at 8:27 PM, Andrew Clapp wrote: > > Hello folks, I'm seeking advice on a module if anyone out there knows > of something that's already there. > > I'm looking at a few different options from cpan but I'm stuck on > finding a ready made solution for this one. There's gotta be > something I missed. Here's the problem in brief. > > I have to parse a CSV file, but it's double-quote wrapped, with commas > in the fields. > > Example with a header... > > "ID","name","desc","detailed desc" > "1234","thing","A nifty phrase that's easy to read","some, list, of > things, with commas, not so easy" > > I've tried Pasrse::CSV which looks promising, and tried doing it > myself, which works, but it's kludgey beyond useful legibility. I > believe there's a good way to do this that I've not seen yet. > > Ideas? > > Thanks for looking. > > -ASC > > > -- > > Andrew S. Clapp > Aeonic Enterprises > > "They're always searching for the magic bullet, and actually it's the > culmination of a lot of different things." -Ken Fischer > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > https://mail.pm.org/mailman/listinfo/pdx-pm-list From andrew.clapp at gmail.com Fri Feb 28 18:30:36 2020 From: andrew.clapp at gmail.com (Andrew Clapp) Date: Fri, 28 Feb 2020 18:30:36 -0800 Subject: [Pdx-pm] Parsing CSV Files In-Reply-To: References: Message-ID: Thanks! I'll check it out. Weird name for a "standard". -ASC On Fri, Feb 28, 2020 at 6:30 PM Andy Lester wrote: > > Text::CSV_XS is pretty much the standard. > > > On Feb 28, 2020, at 8:27 PM, Andrew Clapp wrote: > > > > Hello folks, I'm seeking advice on a module if anyone out there knows > > of something that's already there. > > > > I'm looking at a few different options from cpan but I'm stuck on > > finding a ready made solution for this one. There's gotta be > > something I missed. Here's the problem in brief. > > > > I have to parse a CSV file, but it's double-quote wrapped, with commas > > in the fields. > > > > Example with a header... > > > > "ID","name","desc","detailed desc" > > "1234","thing","A nifty phrase that's easy to read","some, list, of > > things, with commas, not so easy" > > > > I've tried Pasrse::CSV which looks promising, and tried doing it > > myself, which works, but it's kludgey beyond useful legibility. I > > believe there's a good way to do this that I've not seen yet. > > > > Ideas? > > > > Thanks for looking. > > > > -ASC > > > > > > -- > > > > Andrew S. Clapp > > Aeonic Enterprises > > > > "They're always searching for the magic bullet, and actually it's the > > culmination of a lot of different things." -Ken Fischer > > _______________________________________________ > > Pdx-pm-list mailing list > > Pdx-pm-list at pm.org > > https://mail.pm.org/mailman/listinfo/pdx-pm-list -- Andrew S. Clapp Aeonic Enterprises "They're always searching for the magic bullet, and actually it's the culmination of a lot of different things." -Ken Fischer From cpan2 at tinita.de Sat Feb 29 04:14:43 2020 From: cpan2 at tinita.de (=?ISO-8859-15?Q?Tina_M=FCller?=) Date: Sat, 29 Feb 2020 13:14:43 +0100 (CET) Subject: [Pdx-pm] Parsing CSV Files In-Reply-To: References: Message-ID: The standard nowadays is actually Text::CSV. It will automatically use Text::CSV_XS as the backend if available, and otherwise Text::CSV_PP. On Fri, 28 Feb 2020, Andrew Clapp wrote: > Thanks! I'll check it out. Weird name for a "standard". > > -ASC > > On Fri, Feb 28, 2020 at 6:30 PM Andy Lester wrote: >> >> Text::CSV_XS is pretty much the standard. >> >>> On Feb 28, 2020, at 8:27 PM, Andrew Clapp wrote: >>> >>> Hello folks, I'm seeking advice on a module if anyone out there knows >>> of something that's already there. >>> >>> I'm looking at a few different options from cpan but I'm stuck on >>> finding a ready made solution for this one. There's gotta be >>> something I missed. Here's the problem in brief. >>> >>> I have to parse a CSV file, but it's double-quote wrapped, with commas >>> in the fields. >>> >>> Example with a header... >>> >>> "ID","name","desc","detailed desc" >>> "1234","thing","A nifty phrase that's easy to read","some, list, of >>> things, with commas, not so easy" >>> >>> I've tried Pasrse::CSV which looks promising, and tried doing it >>> myself, which works, but it's kludgey beyond useful legibility. I >>> believe there's a good way to do this that I've not seen yet. >>> >>> Ideas? >>> >>> Thanks for looking. >>> >>> -ASC >>> >>> >>> -- >>> >>> Andrew S. Clapp >>> Aeonic Enterprises >>> >>> "They're always searching for the magic bullet, and actually it's the >>> culmination of a lot of different things." -Ken Fischer >>> _______________________________________________ >>> Pdx-pm-list mailing list >>> Pdx-pm-list at pm.org >>> https://mail.pm.org/mailman/listinfo/pdx-pm-list > > > > -- > > Andrew S. Clapp > Aeonic Enterprises > > "They're always searching for the magic bullet, and actually it's the > culmination of a lot of different things." -Ken Fischer > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > https://mail.pm.org/mailman/listinfo/pdx-pm-list > From caserichard at gmail.com Sat Feb 29 14:04:47 2020 From: caserichard at gmail.com (Richard Case) Date: Sat, 29 Feb 2020 14:04:47 -0800 Subject: [Pdx-pm] Parsing CSV Files In-Reply-To: References: Message-ID: Maybe you could use "," as your delimiter (i.e., those three characters). Sounds like fun :) On Sat, Feb 29, 2020, 4:20 AM Tina M?ller wrote: > The standard nowadays is actually Text::CSV. > It will automatically use Text::CSV_XS as the backend if available, and > otherwise Text::CSV_PP. > > On Fri, 28 Feb 2020, Andrew Clapp wrote: > > > Thanks! I'll check it out. Weird name for a "standard". > > > > -ASC > > > > On Fri, Feb 28, 2020 at 6:30 PM Andy Lester wrote: > >> > >> Text::CSV_XS is pretty much the standard. > >> > >>> On Feb 28, 2020, at 8:27 PM, Andrew Clapp > wrote: > >>> > >>> Hello folks, I'm seeking advice on a module if anyone out there knows > >>> of something that's already there. > >>> > >>> I'm looking at a few different options from cpan but I'm stuck on > >>> finding a ready made solution for this one. There's gotta be > >>> something I missed. Here's the problem in brief. > >>> > >>> I have to parse a CSV file, but it's double-quote wrapped, with commas > >>> in the fields. > >>> > >>> Example with a header... > >>> > >>> "ID","name","desc","detailed desc" > >>> "1234","thing","A nifty phrase that's easy to read","some, list, of > >>> things, with commas, not so easy" > >>> > >>> I've tried Pasrse::CSV which looks promising, and tried doing it > >>> myself, which works, but it's kludgey beyond useful legibility. I > >>> believe there's a good way to do this that I've not seen yet. > >>> > >>> Ideas? > >>> > >>> Thanks for looking. > >>> > >>> -ASC > >>> > >>> > >>> -- > >>> > >>> Andrew S. Clapp > >>> Aeonic Enterprises > >>> > >>> "They're always searching for the magic bullet, and actually it's the > >>> culmination of a lot of different things." -Ken Fischer > >>> _______________________________________________ > >>> Pdx-pm-list mailing list > >>> Pdx-pm-list at pm.org > >>> https://mail.pm.org/mailman/listinfo/pdx-pm-list > > > > > > > > -- > > > > Andrew S. Clapp > > Aeonic Enterprises > > > > "They're always searching for the magic bullet, and actually it's the > > culmination of a lot of different things." -Ken Fischer > > _______________________________________________ > > Pdx-pm-list mailing list > > Pdx-pm-list at pm.org > > https://mail.pm.org/mailman/listinfo/pdx-pm-list > > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > https://mail.pm.org/mailman/listinfo/pdx-pm-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: