in reply to Moose/Mouse: assigning default to attribute on first access?
package MyClass; use Any::Moose; has foo => ( is => 'ro', lazy => 1, default => sub { require Foo::Heavy; Foo::Heavy->new; }, ); [download]
-- regards, Roman