(recommended by C::XSA author)
- Modified internal cache names to avoid real accessor clashes
- Some micro-optimizations for get_inherited
+ - Fixed field names with a single quote in them (patch from Jason Plum)
0.09003 Fri Apr 23 23:00:19 2010
- use Class::XSAccessor if available for 'simple' accessors, except on
my $set = "set_$group";
my $get = "get_$group";
+ $field =~ s/'/\\'/g;
+
# eval for faster fastiness
my $code = eval "sub {
if(\@_ > 1) {
my $get = "get_$group";
+ $field =~ s/'/\\'/g;
+
my $code = eval "sub {
if(\@_ > 1) {
my \$caller = caller;
my $set = "set_$group";
+ $field =~ s/'/\\'/g;
+
my $code = eval "sub {
unless (\@_ > 1) {
my \$caller = caller;
groditi: Guillermo Roditi <groditi@cpan.org>
ribasushi: Peter Rabbitson <ribasushi@cpan.org>
+Jason Plum <jason.plum@bmmsi.com>
=head1 COPYRIGHT & LICENSE
__PACKAGE__->mk_group_wo_accessors('single', 'singlefield');
__PACKAGE__->mk_group_wo_accessors('multiple', qw/multiple1 multiple2/);
-__PACKAGE__->mk_group_wo_accessors('listref', [qw/lr1name lr1field/], [qw/lr2name lr2field/]);
+__PACKAGE__->mk_group_wo_accessors('listref', [qw/lr1name lr1;field/], [qw/lr2name lr2'field/]);
sub new {
return bless {}, shift;