Darren (>>>>), Carl (>>>), Darren (>>), Patrick (>): >> >>Read what I said again. I was proposing that the namespace comprised of >> >>names matching a pattern like this: >> >> >> >> /^ <[A..Z]>+ | <[a..z]>+ $/ >> > >> >/^ [<[A..Z]>+ | <[a..z]>+] $/ >> >> Are the square brackets necessary when the pattern doesn't contain >> anything other than the alternatives? > > In this case yes -- the original pattern without the square brackets > would act like: > > / [^ <[A..Z]>+] | [<[a..z]>+ $] / > > In other words, the original pattern says "starting with uppercase > or ending with lowercase".
I see this particular thinko a lot, though. Maybe some Perl 6 lint tool or another will detect when you have a regex containing ^ at its start, $ at the end, | somewhere in the middle, and no [] to disambiguate. // Carl