in reply to Re^4: Matching alphabetic diacritics with Perl and Postgresql
in thread Matching alphabetic diacritics with Perl and Postgresql

There is a speed compare page available. Your split will FAIL on one of the easiest pitfalls, used for the timing. This perfectly formatted CSV line will break any split pattern, and it does not even contain embedded newlines:

hello,","," ",world,"!"

If you need correct CSV parsing of purely strict CSV, and that excludes space after the separator, use a module like Text::CSV::Easy_XS, which allows no deviation from the standard. If you require speed in addition to robustness, options (like space after the separator) and a usable interface, use Text::CSV_XS. If XS is not an option, use any of the _PP variants.

The more data you have to parse, the happier a module will make you. It's loading time outweighs the headaches of finding possible breakages.


Enjoy, Have FUN! H.Merijn