Welcome to the Monastery | |
PerlMonks |
(z) SUPER and Class::DBIby zigdon (Deacon) |
on Dec 30, 2003 at 21:42 UTC ( [id://317785]=perlquestion: print w/replies, xml ) | Need Help?? |
zigdon has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, I thought I understood how SUPER works - but today I tried to override a method in a CDBI object, and things didn't happen as I expected. I have a My::User.pm, which (among other columns), has a Password column. Since I'm hashing the password, I wanted to able to call $u->password("secret"), and have it stored in the database automatically hashed. So in my User.pm module, I tried to override the password method:
But when I try this, I get the following error:
So I have two questions:
-- zigdon
Back to
Seekers of Perl Wisdom
|
|