Inline::Perl5 无法与 Lingua::En::Titlecase Perl 模块一起使用
明白了:
use Lingua::En::Titlecase:from<Perl5>;
# this line is straight from doc
my $tc = Lingua::EN::Titlecase.new("CAN YOU FIX A TITLE?");
明白了:
Could not find symbol ''&Titlecase'' in ''GLOBAL::Lingua::EN''
据我所知,大约一个月前,当我尝试使用 Inline::Perl5
时,它对我有用。不确定我做错了什么。 文档 没有为我提供任何线索
Got this:
use Lingua::En::Titlecase:from<Perl5>;
# this line is straight from doc
my $tc = Lingua::EN::Titlecase.new("CAN YOU FIX A TITLE?");
Get this:
Could not find symbol ''&Titlecase'' in ''GLOBAL::Lingua::EN''
As I recall, Inline::Perl5
worked for me when I kicked its tires about a month ago. Not sure what I'm doing wrong. Docs didn't shed any light on things for me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误的原因是您将
Inline::Perl5
与 perl 模块Lingua 一起使用::En::Titlecase
不存在。您需要在“EN”中输入大写“N”:输出:
The reason for the error is that you used
Inline::Perl5
with perl moduleLingua::En::Titlecase
which does not exist. You need a captial "N" in "EN":Output: