for my $property (qw(several members defined public)) { no strict 'refs'; *{"get_$property"} = sub { (shift)->{$property} }; *{"set_$property"} = sub { (shift)->{$property} = $_[0] }; }
In reply to Re^3: Class::Accessor and Damian's PBP
by Roy Johnson
in thread Class::Accessor and Damian's PBP
by cbrandtbuffalo
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |