I have following code:
my $coderef = ${MyModule::MyTool->new};
but when I try
$coderef->();
i got error:
Not a CODE re
Use \& to obtain a reference to a named function:
\&
my $coderef = \&MyModule::MyTool::new;