Re: REPOST: Regex compilation in mod_perl?

2001-06-05 Thread Len Walter
Awesome! That worked, although the lines were actually terminated by \r\n - my superb observational skills at work again. Although I chomped each line, that would have only removed the trailing \r (depending on the value of $/, that is), and not the \n on the next line. That had me stumped for ab

Re: REPOST: Regex compilation in mod_perl?

2001-06-05 Thread Timothy Kimball
Len Walter wrote: : Since the data is "string\n\rstring" I figured I could use split /^/ to : separate out the individual strings. There's probably an easier way to do it : though... the split seems to work correctly, and both @strings and %content : get filled apparently ok. Try splitting on

REPOST: Regex compilation in mod_perl?

2001-06-04 Thread Len Walter
Hi all, I'm trying to write a script to retrieve a list of URLs, search them for a list of words and print the results. I wrote it first as a standalone script and got it working, but when I converted it to a web page it no longer works properly. The data is typed into two TEXTAREAs, one url