This error is driving me nuts, I cannot seem to find what it means:
[Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 59) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 60) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 61) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 62) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 63) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 64) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 65) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 66) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?) [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] Bareword foun +d where operator expected at (eval 67) line 1, near "//www" [Tue Sep 21 06:38:05 2010] [error] [client 61.942.17.87] \t(Missing op +erator before www?)
line 1 is the shebang line:
#!/usr/bin/perl -a
there is no www anywhere near that line. the only two places in the index.cgi script are these two:
# First location with www in it my $_tdomain = $ENV{SERVER_NAME}; my @_tdom = split(/\./, $_tdomain); if(length($_tdom[2]) > 1 && $_tdom[0] ne "www") { $_username = $_tdom[0]; $_username = $dbh->selectrow_array(qq{select `username` from `reg_ +members` where `subName` = ? and `subNameStatus` = "1"}, undef, $_use +rname); if($_username && $ENV{SCRIPT_URL} eq '/') { window_redirect("http://www.domain.net/index.cgi?page=home&use +rname=$_username&rdf=sub$sess_id"); } }
# Second location with www in it: if (!$in{page}) {# Path or page was NOT defined so now go redirect the +m to the home page, carry the member username... add &l=0 so if it is + us, we know what happened. window_redirect("http://www.$_co_domain/index.cgi?page=home&userna +me=$regmem->{username}&l=0$sess_id"); exit; } else { $_page = $in{page}; }
those are the only places with www and I don't see a problem with any operators.

Also why is their eval and a higher number every time?

I appreciate any advice you have on this, this is filling up my error logs very fast. I cannot find the culprit.

Thanks in advance.

Mack

In reply to Help with error; by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.