in reply to Can't call method "prepare" on an undefined value
The undefined value is likely to be $mwsdbh. Did you recode your connection string and user data to reflect the new server? Your code excerpt doesn't show that essential part. In fact, how does your sub know what $mwsdbh is? How is it scoped? Do you have a closure?
Always check for success when you go to the system.
After Compline,
Zaxo
|
|---|