I've spent the last half hour cursing my data structures and references to them.
I'm working with HTML::Template's loop function, and it needs an array of anonymous hashes inside an array. I typed the code as I thought it should look, fired up Apache, tried it...failure. References popping through.
Hm. So I kept fiddling, and fiddling, and fiddling...
...and just realized that my last line,
print template;
should have been
print template->output();
I restored my data structures and references to their original state and fixed the print statement. Everything worked. :(
The deranged notion of a HTML::Template::Template module came to mind...but it quickly passed. :\