Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Parse a .txt file for adding to a MySQL DBby dru145 (Friar) |
on Mar 12, 2002 at 17:21 UTC ( [id://151164]=perlquestion: print w/replies, xml ) | Need Help?? |
dru145 has asked for the wisdom of the Perl Monks concerning the following question:
Monks, I need some help/suggestions. I have a .txt file that looks like this: I want to be able to upload this file (via CGI.pm), parse it, and add it to a MySQL database (via DBI) which looks like this: I can handle the CGI, DBI, and Mysql portions, but I'm looking for help on how to parse this file for adding it to the database. Does Perl have a way to convert a .txt file to a .csv file? I looked at Text::CSV, but that only seems to parse a csv file, not create one. TIA, Thanks, Dru Another satisfied monk.
Back to
Seekers of Perl Wisdom
|
|