Dave Rolsky wrote:
See "Translucent Attributes" in perltootc as a very nice way to handle this sort of thing:- configurability with localizable variablesIf you're talking about the stuff in Class::Date like $Class::Date::RANGE_CHECK, I _really_ dislike this interface. This sort of stuff should be settable on a per-class and per-object basis, not by exposing global variables.
DateTime->SomeAttribute = "fish"; # all objects have it
my $date = new DateTime "Today";
$date->SomeAttribute = "veggies"; # but objects can override, too
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747