Gossamer Forum
Home : Products : Links 2.0 : Customization :

altavista.cgi and amazon.com result in v2b5

Quote Reply
altavista.cgi and amazon.com result in v2b5
Please ignore this post - got it to work on different server - time to troubleshoot the server...

Does anyone have any suggestions for this error I am getting when trying to search on altavista.cgi .

This is the error:

Warning: Use of "-z" without parens is ambiguous at CGI.pl line 136.

I think it has to deal with my server not being able to handle the syntax at:
------------------------------------------
sub urlencode {
# --------------------------------------------------------
# Escapes a string to make it suitable for printing as a URL.
#
my($toencode) = shift;
$toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
return $toencode;
}
------------------------------------------

Does anyone have any suggestions as to how to modify this?

I can not seem to find the post that describes how to integrate search results of altavista and amazon.com in Links 2b5. I thought I saw it before. Is there anyone that can help me out?

Thanks in advance,
elms

[This message has been edited by elms (edited February 10, 1999).]