i am trying to count the number of occurances of a the following sentence in the source code of a webpage.
<!-- changed logic:noMatch to logic:notEqual to prevent similar symbols from displaying together -->
my script looks like this but it just runs and runs, i have to cancel it.
my $content = get('http://www.website'
my $count= 0;
$count++ while $content =~/\s+changed logic:noMatch to logic:notEqual to prevent similar symbols from displaying together\s/;