perl and connecting to mysql (or any) dbs
Saturday, November 6th, 2010perl is nice and nasty because of the easy way you can ignore casting. In the case of creating an object we can run sql queries against, it’s second to none. my $db = getDB(“dbname”); my $query = $db->prepare(“SELECT COUNT(*) FROM $tblname”); my $numrows = $query->execute(); sub getDB { my $database = shift; my $username [...]


