Re: help with perl

1997-05-27 Thread Roderick Schertler
On Tue, 27 May 1997 09:32:23 +1000 (EST), Craig Sanders <[EMAIL PROTECTED]> said: >> > One advantage of the db file is that comments are stripped out by > makemap which means i can have as many comments as i like in the > source text but it wont slow down the script at all [...] You could get the

Re: help with perl

1997-05-26 Thread Craig Sanders
Thanks for the help...it explains why the syntax was (as far as I could tell) OK yet it still didn't work properly. I should have diffed the output of my test script rather than relying on a visual grep late at night :-). On 26 May 1997, Roderick Schertler wrote: > On Mon, 26 May 1997 23:40:35 +

Re: help with perl

1997-05-26 Thread Manoj Srivastava
Hi, The pattern you have is: //.*riddler.com/Commonwealth/bin/statdeploy.* //www.taz.net.au/blank_ad.gif However, on adding printing to your script, I discovered the key came out to be: DEBUG key = //.*riddler.com/commonwealth/bin/statdeploy.* See? the capitalization

Re: help with perl

1997-05-26 Thread Roderick Schertler
On Mon, 26 May 1997 23:40:35 +1000 (EST), Craig Sanders <[EMAIL PROTECTED]> said: > > The database is a .db file created with 'makemap hash redir from [:space:]-delimited source input like the following: [...] > //.*riddler.com/Commonwealth/bin/statdeploy.* //www.taz.net.au/blank_ad.gif The prob

help with perl

1997-05-26 Thread Craig Sanders
I'm modifying my squid redirection script to use a database...I'd prefer not to have to restart squid every time i update the redirections list. The non-database version (i.e. hardcoded perl S&R statements) works perfectly. The db version fails on some patterns. here's a summary of what the scrip