From: Chris W. <ch...@cw...> - 2004-03-02 12:37:08
|
On Mar 1, 2004, at 6:36 PM, Lee Revell wrote: > I have an SPOPS::LDAP subclass called DCA::User for which the > automatically generated $FIELD_clear() methods do not seem to > work. Here is an example (I have overridden as_string from > SPOPS to produce LDIF output): > > perl -MDCA::Users -e 'my $user = DCA::User->fetch("rlrevell"); > $user->_o_clear; print $user->as_string' A few thoughts: a) that should be '$user->o_clear', but it might be a copy-n-paste typo? b) do you have anything else in your ISA that uses AUTOLOAD that might catch this first call to 'o_clear' (or 'foo_clear')? c) are you using SPOPS 0.80? d) do all the tests n t/00_base.t pass (esp. tests 48-50)? e) I assume that 'use'ing DCA::Users invokes SPOPS::Initialize? f) does '$user->{o} = undef' work as expected? Chris -- Chris Winters Creating enterprise-capable snack systems since 1988 |