Efficient generation of subroutines via string eval
