Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how to remove HTML tag

by Anonymous Monk
on Mar 19, 2009 at 15:03 UTC ( #751744=note: print w/ replies, xml ) Need Help??


in reply to how to remove HTML tag

A thimble-ful of additional explanation might be useful here...

When you use or require any external module, such as (in this case) HTML::TokeParser::Simple Perl must search for the appropriate module.

As you can see, the package-name above strongly implies that there's some kind of hierarchical, directory-like structuring going on, and in fact this is so. Perl will be looking for HTML/TokeParser/Simple.pm. But where will it look?

The short-and-incomplete answer is that it will iterate through a list-type variable, @INC, looking in each of these places for the directory/file in question. There are several ways to determine what's in that list, including use lib directives, the PERL5LIB environment-variable, and a predefined starter list which is built-in to Perl itself. You can use the command, perl -V (note the capital “V”) to display, among other things, the contents of this list.

Under your circumstances, I would say that it's fairly certain that the module you're looking for is not yet installed anywhere. There are, as you will soon see, several alternatives for how-and-where you may do so.


Comment on Re: how to remove HTML tag
Select or Download Code
Replies are listed 'Best First'.
Re^2: how to remove HTML tag
by Nkuvu (Priest) on Mar 19, 2009 at 16:18 UTC

    The @INC list is given as part of the error message, so it's pretty easy to see what's currently in the list.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2015-07-28 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls