Embarrassment

chaoticset on 2002-06-25T20:10:35

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. :\


curses, foiled again

jmm on 2002-06-25T20:40:26

I've spent the last half hour cursing my data structures and references to them.

That's your problem. You have to bless your structures to make them more objectionable.