Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
>>> This does not look right to me: glob has a different set of special
>>> characters than regexes, no?
> Perhaps you can do
> @quoted = map { quotemeta($_) } @logs;
Actually, playing with it here, it seems that quotemeta() quotes
anything that's a special character for either purpose (in fact,
it looks like it quotes anything that's not alphanumeric).
So the patch as given should work.
regards, tom lane