$match_length is undefined in this case. Would produce a warning in line 677