Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
line 1 is the shebang line:[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?)
there is no www anywhere near that line. the only two places in the index.cgi script are these two:#!/usr/bin/perl -a
# 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"); } }
those are the only places with www and I don't see a problem with any operators.# 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}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with error;
by Corion (Patriarch) on Sep 21, 2010 at 13:53 UTC | |
by Anonymous Monk on Sep 21, 2010 at 14:04 UTC | |
by Corion (Patriarch) on Sep 21, 2010 at 14:08 UTC | |
by Anonymous Monk on Sep 21, 2010 at 14:25 UTC | |
by Corion (Patriarch) on Sep 21, 2010 at 14:30 UTC | |
|
Re: Help with error;
by TomDLux (Vicar) on Sep 21, 2010 at 16:57 UTC |