Skip to content

Instantly share code, notes, and snippets.

@mattn
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattn/3c7a14c1677ecb193acd to your computer and use it in GitHub Desktop.
Save mattn/3c7a14c1677ecb193acd to your computer and use it in GitHub Desktop.
Simple feed reader using peco
  • UNIX

       perl feed.pl | peco -null | xargs -r chromium-browser
    
  • Windows

       perl feed.pl | peco --null | xargs -r start
    
use strict;
use warnings;
use XML::Feed;
my $feed = XML::Feed->parse(URI->new('http://qiita.com/tags/go/feed'))
or die XML::Feed->errstr;
for my $entry ($feed->entries) {
print $entry->title . "\0" . $entry->link . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment