I am new to Perl, so I donโt know if this is feasible or not. I am interested in creating a module that would catch all the calls made on it.
Its use will be as follows:
$object = new Foo;
$object->blah;
function name (so in this case "blah" will be a cough from Foo and returned as a string to the screen).
The bit that I donโt know how to do is call the name of the called function as a string.
source
share