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...
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.
curses, foiled again (Score:1)
That's your problem. You have to bless your structures to make them more objectionable.