gets me the error <code
>
Can't use string ("do_somestring") as a subroutine ref while "strict refs"</code>
I'd rather not have to use a load of if's to get round this, and I tried untainting $type with a regexp, but it looks like strict just doesn't like the method at all. Is there a prettier way of doing it ?