in reply to Code Generation with Perl?

The sub AUTOLOAD {} mechanism is often used to provide generated code on a small scale.

After Compline,
Zaxo