Re: installing Lingua-EN-Sentence-0.25 error - wrong version

[email protected] (Rob Dixon)
Newsgroups perl.beginners
Message-ID <[email protected]>
[email protected] wrote:
> Hello,
> 
> I downloaded Lingua-EN-Sentence-0.25 from CPan (http://search.cpan.org/
> ~shlomoy/Lingua-EN-Sentence-0.25/). I followed the install
> instructions and everything seemed to go fine. However when I attempt
> to use it in my perl script I get the error
> 
> Lingua::EN::Sentence version 1 required--this is only version 0.25 at /
> usr/share/perl/5.8/Exporter/Heavy.pm line 107.
> 
> I haven't even used a line of its code just added use
> Lingua::EN::Sentence.
> 
> Does anyone know what this error message actually means./A way to
> remedy the situation.

Hi Iain

The error message is strange as the latest version of Lingua::EN::Sentence is
0.25. This code works fine for me


use strict;
use warnings;

use Lingua::EN::Sentence qw/get_sentences/;

my $text = "Once upon a time. There were three bears. And They all. Ate honey.";

my $sentences = get_sentences $text;

foreach my $sentence (@$sentences) {
  print "-- $sentence\n"
}


I am puzzled about Exporter::Heavy, which is something I have never come across
and is oddly reticent about its purpose. All that comes up on an Internet search
is "(internal use only)"

That's all I can offer.

Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.