Dave Cross: Still Munging Data With Perl: Online event - Mar 27 Learn more
1234567891011121314151617181920 package MOP::Point3D;use strict;use warnings;use metaclass;use base 'MOP::Point';__PACKAGE__->meta->add_attribute('z' => (accessor => 'z'));sub clear { my $self = shift; $self->SUPER::clear(); $self->z(0);}1;__END__
package
MOP::Point3D;
use
strict;
warnings;
metaclass;
base
'MOP::Point'
;
__PACKAGE__->meta->add_attribute(
'z'
=> (
accessor
=>
));
sub
clear {
my
$self
=
shift
->SUPER::clear();
->z(0);
}
1;
__END__