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.
In reply to Re: Reverse grep?
by JamesA
in thread Reverse grep?
by JamesA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |