note
Abigail-II
What's this weirdness with @files? You declare the array,
add one element to it using push, then loop over it. Why?
It's totally unclear to me what your intention is. Do you
want to apply the regex to each line of the document you
fetched, and count the matches? Do you want to know the number
of matches against the entire document? That the above code
gives a result of 1 hit is logical - all you do is asking
whether <tt>abcdef</tt> appears in the document. You either
get one hit, or no hit at all.
<p>
Abigail
291641
291641