Added script to create archlinux vserver/chroot environment
[mirrors/Programs.git] / perl / xml.pl
CommitLineData
21c4e167
H
1#!/usr/bin/env perl
2use strict;
3use warnings;
4use LWP::Simple;
5use XML::Simple;
6use Data::Dumper;
7
8binmode(STDOUT, ":encoding(utf8)");
9
10#print get('http://localhost/');
11
12my $xml = new XML::Simple(ForceArray => 1);
13my $data = $xml->XMLin(get('http://blog.harvie.cz/rss/'));
14#print Dumper($data); #debug
15foreach( @{$data->{channel}[0]->{item}} ) { print("$_->{title}[0]\n\t$_->{link}[0]\n"); }
This page took 0.107784 seconds and 4 git commands to generate.