Subject: | Catalyst::Manual::Intro#Action-types :Global confusing example |
This is a distinct issue to ticket 74869.
https://metacpan.org/module/Catalyst::Manual::Intro#Action-types
We have
"Root-level (:Global)
package MyApp::Controller::Foo;
sub foo : Global { }
Matches http://localhost:3000/foo ..."
This is not an ideal example because the controller name tail ("Foo")
and the method name ("foo") are the same apart from case.
So to tell the reader that this relates to a URL tail of "foo" doesn't
necessarily identify which out of the controller name or method name is
used for the URL tail.
It might better for it to read:
"Root-level (:Global)
package MyApp::Controller::Foo;
sub bar : Global { }
Matches http://localhost:3000/bar ..."
Also see ticket 74869.