Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You could create your own RSS generator...

    (untestet)

    use XML::RSS::FromHTML::Simple;

    my $proc = XML::RSS::FromHTML::Simple->new({
    url => "http://use.perl.org/~reneeb",
    rss_file => "new_comments.xml",
    });

    $proc->link_filter( sub {
    my($link, $text) = @_;

    # Only extract links that contain 'comments.pl'
    # in their URL
    if( $link =~ m#comments\.pl#) {
    return 1;
    } else {
    return 0;
    • Thank you. I feel like somebody just did my homework for me! :) I've yet to create an RSS feed any where, using any mechanism (other than gluing some stuff together with Yahoo Pipes), so having this example is going to be good for me in several ways as I move in to this. :)

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers