
emelin
stranger
Feb 21, 2001, 2:08 AM
Post #1 of 2
(289 views)
|
syntax error, please help!
|
Can't Post
|
|
syntax error at search.cgi line xx, near "$thing(" syntax error at search.cgi line xx, near "}" What am I doing wrong? I'm trying to search through several html documents (stored in the array), find a certain word and put this into a link... @text = ($html1,$html2,$html3,$html4,$html5,$html6,$html7,$html8,$html9,$html10); foreach $page(@text) { if ($page =~ /$FORM::searchfor/ig) { @rows = split (/TR/, $page); foreach $row(@rows) { if ($row =~ /$FORM::searchfor/g) { @stuff = split (/"/, $row) foreach $thing(@stuff) { if ($thing =~ /$FORM::searchfor/ig) || ($thing =~ /AI/g) { print "<a href=http://www.something.com/${thing}>${thing}</a>"; } } } } } }
|