PAGE2GO2 HOME | INTERNET NEWS

LeighExchange - Free Advertising Network Stock Research at Internet Speed

Re: parsing a tab delimited or CSV, but keep the delimiter

 List
Subject: Re: parsing a tab delimited or CSV, but keep the delimiter
Poster: Jürgen Exner
Date: Fri, 23 Mar 2007 22:38:01 GMT
Related Postings: 1 2 3 4 5 6 7 8
Lew wrote:
> Jürgen Exner wrote:
>> Lew wrote:
>>> Jürgen Exner wrote:
>>>> Sideswipe wrote:
>>>>> I need to parse either a CSV or a Tab delimited file, BUT I need
>>>>> to keep the delimiting token -- I am parsing these files as
>>>>> generated from excel and the user expects them to process EXACTLY
>>>>> as it appears in the spreadsheet.
>>>> Text::CSV should do the job quite nicely for regular CSV files.
>>> Are you referring to <http://www.hxtt.com/text.html>?
>>
>> No, why would I?
>
> There were so many that came up when I googled that I just picked one
> at random, on the basis that it was eight out of the first ten sites
> that popped up in my search.
>
>> Of course I am referring to the module Text::CSV (or one of its
>> cousins): http://search.cpan.org/search?query=text%3A%3Acsv&mode=all
>
> Of course! I should have /known/ that it was one of the other 68790
> hits, instead of the one that was eight out of the first ten.

Well, sorry, but when you are talking Perl, then CPAN is the one and only repository for modules. There may be others, there may even be commercial ones. But CPAN is just plain the default and nobody would assume otherwise unless you mention a different source explicitely.

jue

 

Page2Go2.com is not responsible for content of this message.