http://www.perlmonks.org?node_id=866931


in reply to Creating a Moose object and serializing it

Smells like you're actually after a caching mechanism for is_circular().

How often is circularity likely to change? Maybe you need something like has_been_circular().

If it doesn't change, then just provide separate objects for circles and lines. What is it you're trying to do, anyway?

Cheers,
Matt