in reply to This might not be in the spirit of iTIMTOWTDI/i, but...

For number one:
@datum = split /\n__BREAK__\n/, join "", <DATA>; ... ... __END__ one item goes here and then we break __BREAK__ second item goes here blah blah __BREAK__ and then there's the third item! Yeay! hoho ho ho

For #2, a bit tougher. use is compile-time, but your variable there is runtime. Just how early do you know the module name? At compile time, or do you need to wait until some of the "real" code has run?

And for #3, you need to output an <img src = "..."> tag, with a call back to the same, or a different, CGI program. There are examples in the mouse2 book.

And as for your explanation, look at Template toolkit in the CPAN.

-- Randal L. Schwartz, Perl hacker