Subject: | wish: allow changing defaults at object-level or call-level, and not just package-level. |
It's my understanding that a call like this makes a package level change:
Lingua::Conjunction->connector_type("or");
And therefore, if I used different connector types in a busy mod_perl
application, unexpected things could happen, as an essentially global
change is being made, which could cause an unexpected result in another
part of the code.
This can be minimized by returning settings to their default as soon as
possible, reducing the scope of the issue to a race condition.
Providing a traditional OO interface would address this.
Mark