in reply to Re^2: Is there an official regex for checking module names?
in thread Is there an official regex for checking module names?
I'm familiar with "::" but it wouldn't pass code review (cleverness reducing readability)
No, it's not being clever.
Do you write package main::Foo::Bar; or package Foo::Bar;? So why do you expect me to use %main:: instead of %::? If I want the root namespace, that's what I use. Not some alias created so you can say "scripts run in main".
Also, using Foo::->method instead of Foo->method solves a real problem. Again, not cleverness.
While "_a" probably wouldn't pass code review (non-meaningful name) it does match the pattern
oops! I saw the pattern for the lead character was shorter, and I somehow imagined that "_" wasn't included.
As already stated, non-ASCII names are disallowed ($work constraint).
That was not mentioned in the question. And you're not the only person using PerlMonks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is there an official regex for checking module names?
by kcott (Archbishop) on Feb 09, 2022 at 02:28 UTC | |
by ikegami (Patriarch) on Feb 09, 2022 at 15:17 UTC |