At 06:44 PM 10/23/2001 -0700, 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:
>
>..........
>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.
>..........
>The fifth line is
>
>use CGI qw(:standart);
qw(:standard), not standart.
>there is the problem i guess...
>
>This is my code:
>
>
>#/usr/bin/pearl -w
For some strange reason, you seem to like spelling Perl as "pearl". This is
obviously incorrect. Also, your "shebang" line is missing the "bang" part.
It should look like this:
#!/usr/bin/perl -w
>use 5.004;
>use strict;
>use CGI qw(:standart);
Once again, its spelled "standard"
>my{
> $CHATNAME,
> $MAXSAVE,
> $TITLE,
> cur,
> @entries,
> $entry,
>};
>
(lots more code that I have no desire to comb through snipped ;))
What's with the "cur" bareword in the my block? And a my() declaration
should not be enclosed with braces, but parenthesis.
Aloha,
mel
--
mel matsuoka (vox)1.808.531.5474
Head Geek (fax)1.808.526.4040
Hawaiian Image Productions [EMAIL PROTECTED]
http://hawaiianimage.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]