in reply to Re: RFC: Alex::Log
in thread RFC: Alex::Log

Ah, but friedo isn't importing, either. He's creating an object, a very expensive create, and returning that. This way, require still works as well.

Actually, given the way this works, I would be tempted to suggest the following changes:

Just a few possible suggestions - take whatever suits your needs. :-)

Replies are listed 'Best First'.
Re^3: RFC: Alex::Log
by friedo (Prior) on Jul 24, 2005 at 21:48 UTC
    Thanks for the suggestions, Tanktalus! I really don't want to go the Exporter route with this since I already have a significant amount of namespace invasion going on in other places. But I think caching the object is definitely a good idea, as is reducing the scope of the no strict.