[columbus.pm] Re: Help parsing large files.
Tim Koruna
tim at koruna.net
Wed Dec 8 07:05:43 CST 1999
On Tue, Dec 07, 1999 at 01:00:52AM +0000, Pat Collins wrote:
> I'm trying to parse some large files (>75M) to convert the format for
> import into a mysql database.
>
> Here is the routine I wrote (I'm still fairly new at perl):
>
> sub convert_to_csv() {
>
<SNIP>
Have you considered using the Text::ParseWords module? It may save
you some of the heavy lifting (and some inadvertent parsing errors)
when unpacking/repacking data in .csv format. Try page 510 in the
camel book for a description.
TK.
-----------------------------------------------------------------------
To send mail to the Columbus.pm list send email to
columbus-pm-list at happyfunball.pm.org
To unsubscribe send an email to majordomo at hfb.pm.org with
unsubscribe columbus-pm-list youremail at yourdomain.com
-----------------------------------------------------------------------
More information about the Columbus-pm
mailing list