in reply to matching a Url
Does weather appear more than once in your list of url's? If not you could just do:
next if $url =~ m/weather/i;
or if you're trying to block the cnn site alltogether, you could just use:
next if $url =~ m!cnn.com/weather/index.html!i;
I've used ! for my delimeters there so that I don't have to escape my /'s. Makes it a bit easier to read. Also with the url, I don't know that you have to escape the . as it's going to find 1 char, and there should be 1 char between cnn and com which is the '.'
Hope that helps!
Some people fall from grace. I prefer a running start...
|
|---|