Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Perl to Parse RSS Information

Status
Not open for further replies.

webdev17

Programmer
Feb 6, 2006
33
US
I'm trying to display an external RSS feed on my website. The descriptions that it returns are quite long. Using Perl, how could I parse the description to only display approximately 3 sentences of the description?

Thanks!
 
What code do you have so far?

You could generally just use substr to get the first, say, 100 characters from a string.

Code:
$new = substr ($old, 0, 100);

-------------
Cuvou.com | The NEW Kirsle.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top