Ask a Question related to PERL Miscellaneous, Design and Development.
-
will@meister.com #1
Newbie Q: MacPerl / CGI woes
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
will@meister.com Guest
-
Update Woes
Whenever I try to upgrade from MX 7 to 7.01, the InstallAnywhere EXE crashes. I have tried updating two different machines with the same effect... -
WSE 2 woes
I have created the Hello World web service and implemented WSE 2 tokens to validate against a database. I am using VS 2003 and installed the... -
PDF woes
EPS files are intended to be placed on a page in a page-layout program, and thus contain no page orientation or page size information. If you are... -
Font Woes
Sorry... not a regular member of this forum.... just cruising through, trying to decide whether to upgrade or not.... Anyway.... Description... -
Date Woes
I am trying to convert a date from this format: yyyymmddHHMMSS.mmmmmmsUUU to a format that ASP.NET (VB.NET) understands. The above date... -
Tad McClellan #2
Re: Newbie Q: MacPerl / CGI woes
[email]will@meister.com[/email] <will@meister.com> wrote:
> @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';
--
Tad McClellan SGML consulting
[email]tadmc@augustmail.com[/email] Perl programming
Fort Worth, Texas
Tad McClellan Guest
-
Tad McClellan #3
Re: Newbie Q: MacPerl / CGI woes
[email]will@meister.com[/email] <will@meister.com> wrote:
> This is a real clueless newbie-type question:> I'm working with the classic Matt Wright Simple Search CGI,
Don't do that.
Crappy code is not a good starting point for beginners (nor experts).
--
Tad McClellan SGML consulting
[email]tadmc@augustmail.com[/email] Perl programming
Fort Worth, Texas
Tad McClellan Guest
-
Vlad Tepes #4
Re: Newbie Q: MacPerl / CGI woes
[email]will@meister.com[/email] <will@meister.com> wrote:
Don't use Matt's scripts. They contain errors and security holes. Look> 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.
for drop-in replacements made by experts at [url]http://nms-cgi.sf.net[/url] .
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,
--
Vlad
Vlad Tepes Guest



Reply With Quote

