Newbie Q: MacPerl / CGI woes

W

will

Hi chaps,

This is a real clueless newbie-type question: my apologies for
bothering the list, but I've spent some very frustrating hours and
can't find any appropriate documentation in the primers.

I'm working with the classic Matt Wright Simple Search CGI, which I
intend to modify somewhat. Mods are going well, but my ISP is not set
up for Perl support, so I've installed MacPerl with an old copy of
QuidProQuo on my own machine on a dummy IP address. Although the CGI
is working well enough to echo search arguments, I can't get it to see
the search files.

Setup is:

MacHD/QuidProQuo/cgi-bin/search.cgi (location of CGI)

MacHD/QuidProQuo/herbfinder/*.htm (files I want it to search)

Configuration is presently:

$basedir = '../herbfinder/';
$baseurl = 'http://10.10.10.10/herbfinder/';
@files = ('*.htm');
$title = "HerbFinder";
$title_url = 'HerbFinder';
$search_url = 'http://10.10.10.10/herbfinder/hf.htm';

What am I doing wrong? Sorry for tedium of this question.

Will
 
T

Tad McClellan

@files = ('*.htm');


If @files contains no elements, then this code will
have an identical effect:

$files[0] = '*.htm';

Where the first character of the filename is an asterisk character.

What am I doing wrong?


I dunno (because you did not show how you are using @files).

Try expanding the glob:

my @files = glob '*.htm';
 
V

Vlad Tepes

I'm working with the classic Matt Wright Simple Search CGI, which I
intend to modify somewhat. Mods are going well, but my ISP is not set
up for Perl support, so I've installed MacPerl with an old copy of
QuidProQuo on my own machine on a dummy IP address. Although the CGI
is working well enough to echo search arguments, I can't get it to see
the search files.

Don't use Matt's scripts. They contain errors and security holes. Look
for drop-in replacements made by experts at http://nms-cgi.sf.net .

The rest of your mail I didn't bother looking at. I'm willing to help,
but not with scripts Matt Wright himself warns about using.

Hope this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top