pAuLyOYo wrote:
> 
> Hey~
>     I've been trying to made a simple guestbook, i
> copyed the whole code from "Learning Pearl"(O'Reillys
> book) i uploaded to tripod and didn't work
> show me this:

Besides of spelling mistakes which Mel Matsuoka has already told you
about, it looks like for some strange reason you have only . (current
working directory) in your @INC, so when you "use CGI;" perl is looking
for CGI.pm only in current working dir:
 
> ..........
> It looks like there was an error:
> Your script produced this error: Can't locate CGI.pm
> in @INC (@INC contains: .) at ./guestbook.cgi line 5.
> BEGIN failed--compilation aborted at ./guestbook.cgi
> line 5.
> ..........

This is how it looks on my machine when I try to use nonexistent module:

rfl@rfl75:~$ perl -mFoo::Bar
Can't locate Foo/Bar.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.6.1/i586-linux /usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i586-linux
/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.

You can see that I have quite a few directories in my include path.
Run this command from your server's shell:

  perl -e 'print"@INC\n"'

and if you see only a dot, than contact your admin and ask about it. If
you get "Can't locate CGI.pm" with a valid @INC, then you have to
install CGI.pm, download it from CPAN:
http://search.cpan.org/search?dist=CGI.pm

- RaFaL Pocztarski, [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to