Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl: the Markov chain saw
 
PerlMonks  

Can't locate Text/Sentence.pm

by Anonymous Monk
on Aug 23, 2012 at 23:15 UTC ( #989406=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I tried to split file into sentences but got a error message Can't locate Text/Sentence.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at test1.pl line 10. BEGIN failed--compilation aborted at test1.pl line 10.

The line 10 is use Text::Sentence qw(split_sentences);

I installed all text related packages.

Your help is highly appreciated.

Roger

Comment on Can't locate Text/Sentence.pm
Re: Can't locate Text/Sentence.pm
by philiprbrenan (Monk) on Aug 23, 2012 at 23:33 UTC
    http://cpansearch.perl.org/src/AWRIGLEY/HTML-Summary-0.017/lib/Text/Sentence.pm Just copy the subroutine to split sentences into your code.
Re: Can't locate Text/Sentence.pm
by ww (Bishop) on Aug 23, 2012 at 23:39 UTC
    Roger... No intent to offer offense, but your question lacks some info that might even let us guess at your experience level... so, starting from ground zero, because it sorta' looks as though you don't have the module installed:
    1. Did you install Text::Sentence?
    2. Whence? How?
    3. Why is your instruction to use the module (ie, show us your code) as far down as line 10? (My shortsightedness on this may not reflect any problem on your part, but code will help).
    4. Assuming the code will show that you included use strict; use warnings;, is the error message you posted the only response when you try to execute (or test compile) your script.

    Finally, please read carefully and heed the instructions around the text-entry box where you entered your question (and where you can edit it, or which you'll see again when you respond to this request for clarification) about the use of <code>....CODE and DATA should be enclosed between code tags... </code> like this (or, <c> ...like this... </c>).

    Construe "DATA" to mean error messages, warnings, and such like as well as the ordinary usage.

    update: Found the missing "us" (my dog took it outside to play with) and restored to para 1

Re: Can't locate Text/Sentence.pm
by Anonymous Monk on Aug 24, 2012 at 01:34 UTC

    Hi,

    Does your installation actually go under the @INC directories, or did you have to put it somewhere else?

    If it is somewhere else, you will have to add that location to @INC in one of the many ways available.

    J.C.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://989406]
Approved by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2014-04-17 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (451 votes), past polls