-
UNIX
perl feed.pl | peco -null | xargs -r chromium-browser
-
Windows
perl feed.pl | peco --null | xargs -r start
Last active
August 29, 2015 14:02
-
-
Save mattn/3c7a14c1677ecb193acd to your computer and use it in GitHub Desktop.
Simple feed reader using peco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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