The code you posted does not produce that error.
The code you posted fails for a different reason: You are trying to assign a scalar to a method call ($self->some_var="abcd";).
In reply to Re^3: Data inheritance
by ikegami
in thread Data inheritance
by perlbaski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |