in reply to Re^5: Moose: I want builder method to run every time I call an attribute (rehash)
in thread Moose: I want builder method to run every time I call an attribute
Thanks everyone. I guess I got a little carried away with Moose's fancy features. ;-)
Making it a method makes perfect sense. It seems to me the deciding factor on when to make something an attribute with a builder vs a method is, if the value will remain static throughout the life of the object, and you access it a lot, then attribute is more efficient. Else method.