Sorry if this is off topic, but the answer might depend on the database you are planning to use. For example if you where going to load this data into an Oracel database I would suggest using Oracle's sqlldr instead of a Perl script.
Plankton: 1% Evil, 99% Hot Gas.
Comment on Re: Parsing Pipe Delimited Multi-line File