# from Nicholas Clark # on Sunday 06 April 2008 09:33: >> reserved (and it's a parse error to use an unknown lower-case key). >> Are there any strange Unicode issues where we might get confused >> about what is upper and lower case?) > >I believe that there are code points which would be considered word >characters but do not have distinct upper and lower case forms (or by >implication title case either), but I hope that the good folks of >perl-unicode will correct me if I'm wrong.
Can we just say that reserved words are =~ m/^[a-z_]+$/ ? (perhaps allow non-first numbers too?) /^[a-z][a-z0-9_]*$/ ? Yes, that limits reserved words to non-unicode, but eliminates any ambiguity about the convention. --Eric -- "Beware of bugs in the above code; I have only proved it correct, not tried it." --Donald Knuth --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------