I need to count number of words including special characters like % ,$ in a particular section of an XML document.
I need to write this in Perl script using regular expressions.
Anyone has any suggestions on where I can start to look for more info as this is my first perl script.
- I need help with isolating the section and its data.
- I will probably use that data to pass to a subroutine to count words.
name desc address line1 line2 line3
In the example above, I need to capture address and all the lines inside it and build a string that is going to be counted.