Problems? Is your data what you think it is? | |
PerlMonks |
How do I return the first n words of a string?by d_brown3 (Initiate) |
on Oct 26, 2000 at 18:55 UTC ( [id://38624]=perlquestion: print w/replies, xml ) | Need Help?? |
d_brown3 has asked for the wisdom of the Perl Monks concerning the following question:
I have this code and I need to return the first five words
of the string returned in $2 by the first regular expression.
The file is an xml file with a huge chunk of CDATA that contains
a number of editorials split by <p> tags.
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|