I tested this on my machine and changing $DBI:errstr to $DBI::errstr removed all the errors (apart from the one createdby you putting a comment after the END_SQL block ;)

$DBI::errstr anmd $dbh->errstr are essentially the same variable, called in different contexts. Calling $DBI::errstr is making a non-object oriented call to the variable in the package DBI. $dbh->errstr calls the same variable (usually) via the object $dbh. For an explanation of the (usually) part I suggest you look at object oriented tutorials available on this site as a full explanation is beyond the scope of this reply (re: it is past midnight and I have to get up in 6 hours ;))

Suffice to say that, in most cases, replacing one by another will usually work

scottstef, you say that you still have the same problem after updating the code the way I suggested. This is surprising as I managed to get your code working fine and, apart from your colon error your code appears to work pretty well. Perhaps if you were to place your current code on this node, along with the errors you are getting, one of us could take a look and make some suggestions.

$japh->{'Caillte'} = $me;


In reply to Re: DBD::mysql barfs by Caillte
in thread DBD::mysql barfs by scottstef

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.