[ic] search error: Limit subroutine creation

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Fri Nov 23 16:52:01 2001


On Fri, Nov 23, 2001 at 10:31:51PM +0100, Joachim Leidinger wrote:
> Hi List,
> 
> I've trouble to try out the reason of the following error messages:
> 
> 192.168.3.1 J8hvxIYc:192.168.3.1 - [23/November/2001:22:02:33 +0100]
> intos
> /cgi-bin/intos/scan/va=Selektionskz=0/sp=kresults_easy2G/tf=RN:n/co=yes/sf=Gruppe/se=SCSI
> Kabel/su=yes/sf=Untergruppe/se=SCSI-III (U2W/160) Flachbandkabel mit
> Terminator/su=yes/va=katalogseite=173/va=group=SCSI
> Kabel/va=subgroup=SCSI-III (U2W/160) Flachbandkabel mit Terminator
> search error: Limit subroutine creation: Bad code: /SCSI-III (U2W/:
> unmatched () in regexp at (eval 230) line 6, <SEARCH> chunk 1.
> > 
...> 
> This message is comming four times by one searching access for the group
> (Gruppe) and subgroup (Untergruppe).
> 
> What is the reason?
> 
> Any suggestions, helps and hints are very welcome!

We don't use that kind of search any more so I can't give you any code.

What we **used to do** was maintain separate fields, pre-massaging the
database on import, so that a category like "SCSI-III (U2W/160) asdf%:\+..@"
would map to something safe, typically something like this:

sub Squash {
    my($s);
    $s=$_[0];

    $s=~tr /A-Za-z0-9+-/_/cs; # if you need case sensitive
    $s=~s/_+$//;
    $s=~s/^_+//;
    return $s;
}

Now we map all our categories to integers.  :-)

cfm

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux