Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Error Including Libararies near @search_terms;

Quote Reply
Error Including Libararies near @search_terms;
Hey perlheads!

I just uploaded site_html_templates.pl (over an existing version of the same file that was working before, but didnt have RateImage mod) And I got the following error:

Quote:
Error including libraries: syntax error at site_html_templates.pl line 40, near "@search_terms;"

Make sure they exist, permissions are set properly, and paths are set correctly.

I don't think I see a syntax error...?

- chmodMYundies
Quote Reply
Re: Error Including Libararies near @search_terms; In reply to
We don't see your error either since you didn't post the relevant portion of code Smile

I would start by checking for closed quoted, or escaping a @ in an email address or something

--Mark
Quote Reply
Re: Error Including Libararies near @search_terms; In reply to
Line 40 is the one with @search_terms in it:
Whats wrong with it?


Quote:
# You can put variables here that you would like to use in any # of your templates.

$Today = &get_date;

%globals = ( Today => $Today,
Date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,

site_title => $build_site_title,

$search_keywords = @search_terms;


);

Is this the right place to put
$search_keywords = @search_terms; ?
It seems to be causing the problemo...

Thanks in advance,
- Mr. Undies
Quote Reply
Re: Error Including Libararies near @search_terms; In reply to
Change:
$search_keywords = @search_terms;

To:
$search_keywords => @search_terms


Dan Smile