The stupid question is the question not asked | |
PerlMonks |
Re^3: A sub named ∃by diotalevi (Canon) |
on Nov 30, 2006 at 16:48 UTC ( [id://587002]=note: print w/replies, xml ) | Need Help?? |
/w isn't the pattern for matching the first character in identifiers. I never consider \w when matching that first character. In unicode, the pattern to follow is likely /\A\p{IdFirst}\w*\z/. In ASCII, the pattern is /\A[[:alpha:]_]\w*\z/. The pattern /\^\w+\z/ is always wrong when matching identifiers. ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In Section
Seekers of Perl Wisdom
|
|