Subject: | Template::Declare and Devel::NYTProf don't play nice together |
If Devel::NYTProf is loaded before Template::Declare::Tags, strange
things happen to the tag names in T::Ds output (this is
Template::Declare 0.39 and Devel::NYTProf 2.10):
#!/usr/bin/perl
use strict;
use warnings;
use Devel::NYTProf;
use Template::Declare::Tags 'HTML';
my $html = html { head { title { "hello, world!" } } };
print $html;
__DATA__
output:
<__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:507]>
<__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]>
<__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]>hello,
world!</__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]>
</__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]>
</__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:507]>