hatter has asked for the wisdom of the Perl Monks concerning the following question:

I've got some code that uses quite a few bits of perl cleverness. I'd like to use strict, but
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 ?

the hatter