'Inline::Perl5 not working with Lingua::En::Titlecase Perl module
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
Solution 1:[1]
Could not find symbol ''&Titlecase'' in ''GLOBAL::Lingua::EN''
The reason for the error is that you used Inline::Perl5 with perl module Lingua::En::Titlecase which does not exist. You need a captial "N" in "EN":
use Lingua::EN::Titlecase:from<Perl5>;
my $tc = Lingua::EN::Titlecase.new("CAN YOU FIX A TITLE?");
say $tc;
Output:
Can You Fix a Title?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Håkon Hægland |
