in reply to Re^2: Moose and BUILD
in thread Moose and BUILD

Good catch on the is, just a brain typo from rapidly throwing together running example code. It didn't matter in this case as I wasn't trying to use bad values in my test script.

I will look into the lazy flag on the attribute and get a better idea of what it does.

Replies are listed 'Best First'.
Re^4: Moose and BUILD
by ikegami (Patriarch) on Jun 15, 2011 at 21:19 UTC

    Always use lazy when the initialiser relies on another field of $self.

    It cause the initialiser to be called when the field is read instead of being called on construction.