as if it were a function internal to Two, not requiring an object.
As if it's something it isn't. So make it what you want it to be.
BEGIN { *Two::test = \&One::test; }
It's really weird to export functions from a Class module, though.
In reply to Re^5: Simple inheritance question
by ikegami
in thread Simple inheritance question
by halfcountplus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |