Newbie Q: MacPerl / CGI woes

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. Font Woes
      Sorry... not a regular member of this forum.... just cruising through, trying to decide whether to upgrade or not.... Anyway.... Description...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default Re: Newbie Q: MacPerl / CGI woes

    [email]will@meister.com[/email] <will@meister.com> wrote:
    > 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 [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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139