1 package AccessorGroups;
4 use base 'AccessorGroupsParent';
6 __PACKAGE__->mk_group_accessors('simple', [ fieldname_torture => join ('', reverse map { chr($_) } (0..255) ) ]);
9 my $v = shift->SUPER::get_simple (@_);
10 $v =~ s/ Extra tackled on$// if $v;
15 my ($self, $f, $v) = @_;
16 $v .= ' Extra tackled on' if $f eq 'singlefield';
17 $self->SUPER::set_simple ($f, $v);
21 # a runtime Class::Method::Modifiers style around
22 # the eval/our combo is so that we do not need to rely on Sub::Name being available
23 my $orig_ra_cref = __PACKAGE__->can('runtime_around');
24 our $around_cref = sub {
28 $self->$orig_ra_cref($val . ' Extra tackled on');
32 my $val = $self->$orig_ra_cref;
33 $val =~ s/ Extra tackled on$// if defined $val;
38 no warnings qw/redefine/;
40 sub runtime_around { goto $around_cref };
41 sub _runtime_around_accessor { goto $around_cref };