Not to be snippy, but my original post does say I've done exactly what you suggested and got the expected results:

I check the tmp file and it had 3599 lines, I printed out the command from the perl script and appened it to mysql -e and got 3599 records.

The results from the code listed above with PrintError=1 and trace=2:

[reports@clarkkent]/home/reports/ftp/WSB(29): ./b.pl load data infile '/tmp/WSB_urls_CDyy' into table tmpurl fields termina +ted by '|' (tstamp,url,count) load data infile '/tmp/WSB_count_YAkf' into table tmpwsb fields termin +ated by '|' (tstamp,op100,op700,total) lines: 72182 Done parsing: 1107730800: 1107734398 Done writing counts Done writing urls Done writing count DB Done writing url DB just done [reports@clarkkent]/home/reports/ftp/WSB(30):

I can cut and paste the load command printed out by the script to "mysql -u root -pXXXX -e" and run it from the unix command line and I get the correct results.

When I run the same command from the perl script in ``s I get the same results as I do using DBI

Never moon a werewolf!

In reply to Re^2: DBI/load data infile issue by jimbus
in thread DBI/load data infile issue by jimbus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.