gpt4 book ai didi

perl - Getopt::Long 模块未导出 "GetOptionsFromString"

转载 作者:行者123 更新时间:2023-12-05 00:56:35 24 4
gpt4 key购买 nike

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

"GetOptionsFromString" is not exported by the Getopt::Long module



在程序中,我添加了以下几行:
use Getopt::Long qw(GetOptionsFromString); 
use Getopt::Long;

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

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

最佳答案

这是在 2.36 版中添加的。 (当前版本是 2.48。)

您需要更新 Getopt::Long来自 CPAN。

关于perl - Getopt::Long 模块未导出 "GetOptionsFromString",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36095315/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com