Jim McCoy wrote:
>
> Yes, actually I am getting a line number. But I thought I was getting 2
> unrelated messages.
> Here is the whole error listing:
>
> (W) You used a bareword that might someday be claimed as a reserved
> word.
> It's best to put such a word in quotes, or capitalize it somehow, or
> insert
> an underbar into it. You might also declare it as a subroutine.
>
> Name "main::header" used only once: possible typo at
> e:\web\jcoy\cgi-bin\search_engine.pl line 5 (#2)
>
> (W) Typographical errors often show up as unique variable names.
> If you had a good reason for having a unique name, then just mention
> it again somehow to suppress the message. The use vars pragma is
> provided for just this purpose.
>
> Filehandle main::header never opened at e:\web\jcoy\cgi-bin\search_engine.pl
> line 5 (#3)
>
> (W) An I/O operation was attempted on a filehandle that was never
> initialized.
> You need to do an open() or a socket() call, or call a constructor from
> the FileHandle package.
>
> Here is the script up to line 5:
> #!/usr/bin/perl -w
> use cgi qw(:standard);
> use strict;
> use diagnostics;
> print header;
>
> It seems to niot like the "print header;".
You need to capitalize CGI in your use cgi line.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles http://www.todbe.com/
/ ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users