[PATCH] Re: [Petal] Fergal's work / suggestions
Fergal Daly
fergal at esatclear.ie
Thu Jun 19 15:57:30 BST 2003
On Thursday 19 June 2003 10:19, William McKee wrote:
> Right, I forgot about caching. So if I understand this all correctly,
> standalone scripts using Petal with disk caching enabled should generate
> the template script on first use. Subsequent uses, even if using your
> optimizations and Parse::RecDescent, should not cause PRD to get loaded
> unless the cached template expires. Right? Perhaps we should build a
> test case to verify. But how would we know if PRD got loaded? Can we
> check the @INC? The other option may be to do benchmarking I guess.
It should be pretty easy to test. To see if a module has been loaded, you can
look inside the package's symbol table for example
use Parse::RecDescent;
print join("\n", keys %Parse::RecDescent::), "\n";
should print out a long mess of stuff.
%Package::Name::
is how to find out what symbols have been used in a package.
F
More information about the Petal
mailing list