I guess I think first of the \Q...\E form because I rarely quote things quite like this - more often I'm quoting a fragment inside a larger string.
Precisely because of that though, when reading the code you need to look more carefully at a \Q...\E construct, so quotemeta would have been the better thing to use in this case.
Note that this is a "belt and braces" approach: the quotemeta() isn't actually required for the strings specified, so this is a protection against future changes to the apparently constant data (and relatively unlikely changes as well, since I can't think of any languages that use regexp metacharacters in their names for the days of the week).
Hugo
In reply to Re: Re^6: qr// with /e?
by hv
in thread qr// with /e?
by tkil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |