How to take code reference to constructor?

前端 未结 3 466
日久生厌
日久生厌 2021-01-20 18:55

I have following code:

my $coderef = ${MyModule::MyTool->new};

but when I try

$coderef->();

i got error:

Not a CODE re         


        
3条回答
提交回复
热议问题