#perl - Tue 27 Mar 2007 between 00:32 and 00:39



kunwon1Zoffix: there's a typo on line 40
sovereignZoe"s also fails
KhisanthText::xSV :)
DrForrHAMMER TIME.
peshaltoZoffix: what happens when a file open fails?
cfeddesheesh here I was working wiht Text::CSV_XS all day today too.
DrForr"Failure can result from... an argument containing an invalid character."
sovereignKhisanth: does that solve the problem?
cfedde: haha awesome, do you have a solution?
DrForrI would *hope* that UTF-8 was a valid character...
KhisanthI have no need to deal with non ascii
all my data comes from ancient government sources
some on big rolls of tape!
sovereignhaha perl is such an awesome language
i love the modules
cfeddeKhisanth: you're lucky. I have to deal with "what ever someone pounds into the form"
sovereigncfedde: did you have any trouble with combine()?
Zoffixpeshalto, sorry, that was a "testing-typo" the `if` before `open` is `unless`
kunwon1, thanks, that did it. Sometimes you just need an extra pair of eyes ;)
kunwon1Zoffix: Cheers :)
cfeddesovereign: unfortunately the various mumble::csv::mumble modules have different interfaces. So testing different ones to see if they suffer from the same problem is a bit harder than it could be.
DrForrsovereign: I ran the sample test with ASCII, no problems. Introduce a UTF-8 character, it fails.
cfeddeperl sucks!
Damn! 'mericans!
PatternerASCII WAS GOOD ENOUGH FOR GEORGE WASHINGTON
WoostaI've never found a useful CSV module on CPAN
Chris62vwASCII is freedom
scrottieActually, Perl is running bizarrely slow this server...
WoostaThey're all damned weird
cfeddewhy can't y'all tawk 'merican. It was good enough for the lord it's good enough for you!
scrottieTakes 10 minutes for the CPAN shell to come up.
DrForrLine 139 is where it's UTF-8 unfriendly.
scrottieTakes 20 CPU seconds and about two real world minutes for a Faq-O-Matic page to come up.
Woosta"Here's a CSV string, give me an AoA" .. "Here's an AoA, give me a CSV"
DrForr/[^\t\040-\176]/ - If it doesn't match this RE it's invalid. Despite the fact that there are characters >\176.
Chris62vwWoosta, what's wrong with Text::CSV? :-)
sovereignDrForr: Is there some simple code to replace UTF-8 with a ASCII space?
scrottieNot the fastest system, but gcc is pretty zippy...
WoostaCan't remember
DrForrsovereign: You want to corrupt your data even further?...

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 

IrcArchive