Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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
|
|