Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Can't locate Text/

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:


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

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

I installed all text related packages.

Your help is highly appreciated.


Replies are listed 'Best First'.
Re: Can't locate Text/
by ww (Archbishop) 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> 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/
by philiprbrenan (Monk) on Aug 23, 2012 at 23:33 UTC Just copy the subroutine to split sentences into your code.
Re: Can't locate Text/
by Anonymous Monk on Aug 24, 2012 at 01:34 UTC


    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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://989406]
Approved by tye
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2018-03-25 03:58 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (300 votes). Check out past polls.