Skip Menu |

This queue is for tickets about the Lingua-EN-Numbers-Easy CPAN distribution.

Report information
The Basics
Id: 100659
Status: resolved
Priority: 0/
Queue: Lingua-EN-Numbers-Easy

People
Owner: Nobody in particular
Requestors: contyk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2009040201
Fixed in: (no value)



Subject: Lingua::EN::Numbers::Easy doesn't work with Lingua::EN::Numbers >= 2.00
Lingua::EN::Numbers 2.00 drops the long deprecated object-oriented interface this module uses. The following patch fixes the issue by switching to the procedural interface: --- a/lib/Lingua/EN/Numbers/Easy.pm +++ b/lib/Lingua/EN/Numbers/Easy.pm @@ -7,7 +7,7 @@ no warnings 'syntax'; our $VERSION = '2009110701'; our %N; -use Lingua::EN::Numbers 1.01; +use Lingua::EN::Numbers 1.01 qw(num2en); sub import { my ($pkg, $hash) = grep {$_ ne 'American' and @@ -27,8 +27,8 @@ sub FETCH { my $self = shift; my $value = shift; return $self -> {$value} if exists $self -> {$value}; - (my $n = Lingua::EN::Numbers -> new) -> parse ($value) or return; - $self -> {$value} = lc $n -> get_string; + my $n = num2en($value) or return; + $self -> {$value} = lc $n; } sub STORE {die}
Subject: Re: [rt.cpan.org #100659] Lingua::EN::Numbers::Easy doesn't work with Lingua::EN::Numbers >= 2.00
Date: Thu, 4 Dec 2014 17:36:42 +0100
To: Petr Šabata via RT <bug-Lingua-EN-Numbers-Easy [...] rt.cpan.org>
From: Abigail <abigail [...] abigail.be>
On Tue, Dec 02, 2014 at 05:42:29AM -0500, Petr Šabata via RT wrote: Show quoted text
> Tue Dec 02 05:42:29 2014: Request 100659 was acted upon. > Transaction: Ticket created by contyk > Queue: Lingua-EN-Numbers-Easy > Subject: Lingua::EN::Numbers::Easy doesn't work with Lingua::EN::Numbers
> >= 2.00
> Broken in: 2009040201 > Severity: Critical > Owner: Nobody > Requestors: contyk@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100659 > > > > Lingua::EN::Numbers 2.00 drops the long deprecated object-oriented interface this module uses. >
Thanks, I've just uploaded a new version of Lingua::EN::Numbers::Easy which uses the procedurial interface. Regards, Abigail