Here are some modules( ActiveState ):
DBD-CSV [0.1025] DBI driver for CSV files
Text-CSV [0.01 ] comma-separated values manipulation routines
Text-CSV_XS [0.22 ] comma-separated values manipulation routines
XML-CSV [0.10 ] Perl extension converting CSV files to XML
Depending on what you are doing, one of these might assist. You cold
also check CPAN for other CSV modules.
Wags ;)
-----Original Message-----
From: Filip Sneppe (Yucom) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 10:42
To: [EMAIL PROTECTED]
Subject: Cleanest way to split this
Hi,
I have input lines that look like this:
username,[EMAIL PROTECTED],age,streetname number zip-code
city,www.website.com/user/default.html
and that need to be split into $username, $email, etc.
Easy to do, but some of the records look like this:
username,[EMAIL PROTECTED],18,"streetname 54B, 1000 Brussels",www.site.com
"Doe, John",[EMAIL PROTECTED],40,"blah blah,,, ,stuff",www.site2.org
What would be the easiest way to take into account the quotes when splitting
?
TIA,
Filip
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]