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
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With