[Templates] Templates Cached to Disk

Perrin Harkins perrin@elem.com
Fri, 15 Mar 2002 18:09:41 -0500


Tom Gioconda wrote:
 > Basically,
> when it does "$compiled = require $file", $compiled gets the value 1 on
> occasion.

Hmm... That looks like it should *always* return 1, unless the require 
fails for some reason.

> I'm getting real close here to
> sacking _load_compiled and writing my own that doesn't use require but
> loads the file itself and then evals the contents of it (and not having
> to worry about %INC).

That's spelled "do $file;", but that would be a voodoo solution.  It 
shouldn't behave any differently from a require, except that require 
checks %INC and needs to see a true return value.

- Perrin