Here we go: Just to verify, I just changed it to
eval { use re 'eval'; no warnings; "" =~ /$searchstring/ };
Run from the browser, it generates an internal server error (the log complains of premature end of script headers, regardless of how the script is run.) but no coredump. When run from the command line, the script is aborted and does dump core. Umm, yay. (Maybe the lack of core dump is due to apache? I'll look into it.)
So, I'll consider removing the regex search completely, or building one from pieces as samtregar mentioned in a previous post. (I already have AND and ANY searches, though. We'll see what I can come up with.) Thanks for the tips, folks.
--
There are 10 kinds of people -- those that understand binary, and those that don't.