DBI is a class and $dbh is an object of this class. But isnt it rerquired that contructor has the same name like class ?
In here connect() seems like a method of the DBI class. DBI->connect() establishes a connection with database. Is this connection some kind of class ? Is this connection object a separate object than DBI ? Does this connection object have a method prepare ? I am confused that , how can connection have a method ?