Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inline::Perl5 not working with Lingua::En::Titlecase Perl module

Tags:

raku

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

like image 448
StevieD Avatar asked Oct 12 '25 18:10

StevieD


1 Answers

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?