Subject: | missing self on sub group_ands |
the sub group_ands is not a method, and is called in non_parens_search like this:
($str,$and_preds) = group_ands($str);
This should be $self->group_ands($str);
Also group_ands should be changed to:
sub group_ands{
my $self = shift;
my $str = shift;
...
return $self->group_ands($str,$and_preds);
This will allow people to subclass SQL::Parser more easliy