clahti2
Posts: 107
|
Posted: 07/05/2012, 5:08 PM |
|
Hey guys:
I know this is the PHP forum, I also posted this question in the Perl section but I am thinking there will be very few eyeballs on that post The CCS5 documentation is mighty skinny on perl, I operate in PHP mostly but have a perl project at the moment. I have been able to reverse engineer most stuff by looking at the generated perl code, but I am now writing a function library in perl and need to update a record in an SQLite table. Could someone be so kind as to give me the perl equivalent to this simple PHP code? I could do my own perl DBD::SQLIte open/prepare/update/finalize however there must be a better CCS way.
function UpdateTest() {
$db = new clsDBmaster_config();
$SQL = "UPDATE test SET foo=\'bar\' WHERE recordid = 1";
$db->query($SQL);
}
The specific head scratching is how to instantiate a DB object in perl, as in the "new clsDB" line in PHP. Many thanks in advance!
|
|
|
clahti2
Posts: 107
|
Posted: 07/05/2012, 5:38 PM |
|
so it was easy, CCS forum apparently will not let me post perl code under the code /code here LOL
sub UpdateTest
db = new clsDBmaster_config
blah blah, sorry for the confusion.
|
|
|
|