Parsing RSS feeds with XML::Simple
Written by Kevin Marshall
There are lots of different libraries and packages built to help you deal with RSS feeds, but one of the easiest ways I've found to deal with the problem of parsing RSS is to simply deal with it's basic parts (simple xml via http).
The following script shows the basic concepts of writing a custom RSS parser. While it's probably not the world's fastest or best way to deal with RSS, it is pretty simple and so far has performed very well for me (I actually use a version of this code in my fubnub project!).
LWP::UserAgent...but most of ... read more »
Implenting a slightly complex like search with DBIx::Class
Written by Kevin Marshall
Search is clearly one of the most useful features of any given content rich site right now. It's also one of the more difficult things to get right (probably because it's such an important and useful feature). In this post, I'm going break down one way to implement a simple search using DBIx::Class.
Before I get started, I should note that a pure SQL based search solution like this is really not all that flexible or fast. It can only do phrase like searching and must do complete table scans regardless of indexes (thanks to the LIKE searches). These are some ... read more »
General Discussion
Written by Kevin Marshall
Got a question about something we haven't written about yet? Got something Perl related you want to share with PerlQuiz.com readers? Just want to chat about all things Perl?
Then this is just the spot you are looking for! Anything goes - so long as it's related to Perl in some way - in this general discussion area. ... read more »
Written by Kevin Marshall
There are lots of different libraries and packages built to help you deal with RSS feeds, but one of the easiest ways I've found to deal with the problem of parsing RSS is to simply deal with it's basic parts (simple xml via http).
The following script shows the basic concepts of writing a custom RSS parser. While it's probably not the world's fastest or best way to deal with RSS, it is pretty simple and so far has performed very well for me (I actually use a version of this code in my fubnub project!).
LWP::UserAgent...but most of ... read more »
Implenting a slightly complex like search with DBIx::Class
Written by Kevin Marshall
Search is clearly one of the most useful features of any given content rich site right now. It's also one of the more difficult things to get right (probably because it's such an important and useful feature). In this post, I'm going break down one way to implement a simple search using DBIx::Class.
Before I get started, I should note that a pure SQL based search solution like this is really not all that flexible or fast. It can only do phrase like searching and must do complete table scans regardless of indexes (thanks to the LIKE searches). These are some ... read more »
General Discussion
Written by Kevin Marshall
Got a question about something we haven't written about yet? Got something Perl related you want to share with PerlQuiz.com readers? Just want to chat about all things Perl?
Then this is just the spot you are looking for! Anything goes - so long as it's related to Perl in some way - in this general discussion area. ... read more »