in reply to word boundary match problem
Funny, with my little test.txt, it counts to much words, due to umlauts... :)
I'd modifie the line inside the loop as
to see where it fails.$size++,print "-".$1."-" while m{\b(\w+)\b}g;
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
|
|---|