in reply to Overriding methods in Class::Struct

did you mean this? (note the ->member in there) or did you mean for dump_new_id to be in the Datnum package?
sub Dataset::dump_new_id { my $self = shift(); print "\n\n new_id is undefined\n\n" unless defined ($self->member +->{new_id}); }

Replies are listed 'Best First'.
Re^2: Overriding methods in Class::Struct
by Anonymous Monk on Jul 11, 2005 at 08:28 UTC
    yes, sorry... that's what i meant. and it works. i was wondering if Datum::new_id and new_id are the same. thanks