Do you have to create your methods on the fly? There could be better ways. Cheers.$this->{_coderef} = sub{ return "Don\'t think so"; }; ## ... and later: printf "%s\n", $this->{_coderef}->();
Update: Changed "_codestring" to "_coderef"
In reply to Re: on the fly methods
by fenLisesi
in thread on the fly methods
by Ojosh!ro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |