Piers Cawley wrote:
Then the harness that actually sets up the application would simply do
    use Logger::DBI :dsn<...>, :user<...>, :password<....>
and Logger::DBI would install itself as the default Logger class.
The question is, how does one write Injected to make this work? Or what
features do we need to be able to write Injected? Thinking about this, it
shouldn't be too hard to implement 'Injected' in Perl 5:

FWIW this is exactly what I would like to achieve with the Date objects;
allowing code that doesn't care about which Date representation they want
the ability to just say "any Date representation".

Sam.

Reply via email to