# [...] Rather than using # eval STR to eval "require $[...]pm", we do it ourselves. This # is slightly faster (Benchmark shows about 20% faster). (my $pm = $type) =~ s.::./.g; $pm .= '.pm'; eval { require $pm };