%{$opt{render}||{}}
};
- $opt{render_op} = our $RENDER_OP;
+ $opt{render_op} = {
+ (map +($_ => '_render_op_between'), 'between', 'not between'),
+ (map +($_ => '_render_op_in'), 'in', 'not in'),
+ (map +($_ => '_render_unop_postfix'),
+ 'is null', 'is not null', 'asc', 'desc',
+ ),
+ (not => '_render_op_not'),
+ (map +($_ => '_render_op_andor'), qw(and or)),
+ };
return bless \%opt, $class;
}
);
}
-our $RENDER_OP = {
- (map +($_ => '_render_op_between'), 'between', 'not between'),
- (map +($_ => '_render_op_in'), 'in', 'not in'),
- (map +($_ => '_render_unop_postfix'),
- 'is null', 'is not null', 'asc', 'desc',
- ),
- (not => '_render_op_not'),
- (map +($_ => '_render_op_andor'), qw(and or)),
-};
-
sub _render_op {
my ($self, $v) = @_;
my ($op, @args) = @$v;