> 
> Hi 
> 
> I wanted to install Module HTTP::BrowserDetect usign CPAN. It went
well nice..
> 
> But when I compile the program I get the message as
> 
> Can't locate HTTP/BrowserDetect.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at test.pl line 1.
> 
> 
> Program
> 
> use HTTP::BrowserDetect;
>     my $browser = new HTTP::BrowserDetect($user_agent_string);
> 
>     # Detect browser vendor and version
>     print $browser->netscape;
>     print $browser->ie;
>     if (browser->major(4)) {
>         if ($browser->minor() > .5) {
> 
>         }
>     }
>     if ($browser->version() > 4) {
>     }
> 
>     # Process a different user agent string
>     $browser->user_agent($another_user_agent_string);
> 
> 
> please help me in spotting the error...
> 
> Thanks
> Anish
> 

Out of curiousity how many more basic questions will you ask without
first checking the archives or doing a simple Google search?  You really
need to at least *try* to help yourself before asking for our time, this
has been habitual for a while.

perldoc perldiag

Will provide information about most of the errors you see so if Perl
gives you a specific error like it did in this case you should check
there first.

>From that resource:

"Can't locate %s
           (F) You said to "do" (or "require", or "use") a file that
couldn�t be found. Perl looks for the file in all the locations
mentioned in @INC, unless the file name included the full path to the
file. Perhaps you need to set the PERL5LIB or PERL5OPT environment vari
able to say where the extra library is, or maybe the script needs to add
the library name to @INC.  Or maybe you just misspelled the name of the
file.  See "require" in perlfunc and lib."

perldoc -f require
perldoc lib

http://danconia.org


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to