in reply to on the fly methods

You could do:
$this->{_coderef} = sub{ return "Don\'t think so"; }; ## ... and later: printf "%s\n", $this->{_coderef}->();
Do you have to create your methods on the fly? There could be better ways. Cheers.

Update: Changed "_codestring" to "_coderef"