Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: perl and mysql parse a text file

by VSarkiss (Monsignor)
on Feb 03, 2006 at 15:55 UTC ( #527695=note: print w/ replies, xml ) Need Help??

in reply to perl and mysql parse a text file

Fletch's answer above is a good way to go. If you need the rows in an array for some other reason, you can always join them before you insert, something like this:

@array = <IN>; # Other stuff with @array ... $sth = $dbh->prepare('insert into data_profile (file) values (?)'); $sth->execute(join '' => @array);

Comment on Re: perl and mysql parse a text file
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://527695]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2014-09-18 04:33 GMT
Find Nodes?
    Voting Booth?

    How do you remember the number of days in each month?

    Results (108 votes), past polls