Getopt :: Long模块不会导出"GetOptionsFromString"

Apa*_*rna 4 perl

我正在尝试使用GetOptionsFromString函数并面临以下错误:

Getopt :: Long模块不会导出"GetOptionsFromString"

在程序中,我添加了以下行:

use Getopt::Long qw(GetOptionsFromString); 
use Getopt::Long;
Run Code Online (Sandbox Code Playgroud)

我试过perl -MGetopt::Long -e 'print $Getopt::Long::VERSION, "\n"',它打印2.35.

有人可以帮我解决这个问题吗?

yst*_*sth 5

这是在2.36版本中添加的.(目前的版本是2.48.)

您需要从CPAN 更新Getopt :: Long.