On 6/7/06, Graeme McLaren <[EMAIL PROTECTED]> wrote:
Can't locate object method "dbh" via package "em_log" at
in my class I have:
sub dbh{
Is it, really and truly, in the correct class? And your class is named
"em_log", in all lower case? (This method isn't inherited, is it?)
Generally, Perl class names (package names) are capitalized by
convention; lowercase names are reserved for Perl's own use. But that
name should still work.
In this case, I think that you've probably put &dbh into some other
package by mistake. Check the 'package' directive to ensure that it's
in scope, or declare your sub with its package name:
sub em_log::dbh { ... }
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>