Perl5Compiler compiler = new Perl5Compiler();
      matcher = new Perl5Matcher();
      try {
        rightSidePattern = compiler.compile(rightSide);
      } catch (MalformedPatternException mfpe) {
        throw new ScanError("Malformed pattern [" + rightSide + "]", mfpe);
      }
    }
    // if CHILDOF operator and rightSide does not end with a dot add one
    if ((operator.getCode() == Operator.CHILDOF) && !rightSide.endsWith(".")) {