[Solved] Perl module, inhereting from DBI , “Can’t call method ‘prepare'” error [duplicate]

Your code includes this line: if (!my $mysqlopen) { &conexion(); } You call your conexion sub with no arguments. However, this sub expects several arguments, including a blessed object, that you don’t provide. You might want to fix that. $database and $hostname also are expected in the arguments. Your call to conexion will always be … Read more