Re: [PATCH] Git.pm: Make File::Spec and File::Temp requirement lazy
- From
Marcus Griep <marcus@griep.us>
- Date
- Aug 15, 2008, 19:46 UTC
- Message-ID
- <48A5DD0B.8050204@griep.us>
- In-Reply-To
- <3e8340490808151231p700ca76fub16700708f2942bb@mail.gmail.com>
Bryan Donlan wrote:
Show 5 quoted lines
> perl's 'require' will only attempt to load a module the first time it > is used; subsequent attempts will result in a quick no-op, so there's > no need to further cache. Unless you mean to cache a negative result? > In which case, the require should be quite fast, as it'll quickly get > a 'file not found' error without needing to do any compilation.
Aha. Point taken. I was under the mistaken impression that an entirely new context was set up in an 'eval', but it is much more lightweight than that. A simplified patch is forthcoming.
-- Marcus Griep GPG Key ID: 0x5E968152 —— http://www.boohaunt.net את.ψο´