in reply to Reverse grep?
open FILE, "regex" or die "Couldn't open: $!"; while (<FILE>) { if ( $ENV{"REDIRECT_URL"} +~ /$_/ ) { print $_; last; } } close FILE;
Where the file "regex" would contain all of the patterns I want to test against the URL.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reverse grep?
by dws (Chancellor) on Mar 02, 2002 at 00:47 UTC | |
|
Re: Re: Reverse grep?
by coolmichael (Deacon) on Mar 02, 2002 at 05:23 UTC | |
by jeffa (Bishop) on Mar 02, 2002 at 18:35 UTC |