$self is not local or global, it's a lexical variable!... though, I recall seing some patch for this in p5p, maybe its supported in the development version of perl (currently 5.9.2).
Anyway, you don't need eval for what you are trying to do, use
$method_name="foo"; $self->$method_name(@args);
In reply to Re: eval inside an object
by salva
in thread eval inside an object
by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |