>>>>> "Tony" == Tony Bowden <[EMAIL PROTECTED]> writes:

Tony> I can seemingly use Hook::LexWrap to get the definitions:

Tony>   wrap *Template::Directive::macro, pre => sub { push @def, $_[1] };

Tony> But I can't see how to do the equivalent for which ones are called.

Set up a sentinel on each code-def that says "I was called" into an
external table.  Then look at the table after your tests were run.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to