in reply to Printf in perl / Lazy hash possible?

You could write a wrapper around Text::Sprintf::Named (ugly, I know) or ask the author to include the capability of executing code blocks.

Or you could try Data::Lazy, perhaps that helps you - I guess it uses some tie magic internally.

Update: Scalar::Defer looks interesting too.

  • Comment on Re: Printf in perl / Lazy hash possible?