A perlish version of the script (hopefully), also untested and may overwrite things.
use LWP::Simple;
use Archive::Zip;
my $url = 'http://www.bleb.org/tv/data/listings?format=XMLTV&file=zip&
+channels=bbc1,bbc2,bbc3,bbc4,bbc7,itv1,ch4,five,abc1,bbc_6music,bbc_r
+adio2,bbc_radio4,e4,itv2,itv3,uk_history&days=0';
my $zipfile = 'bleb.zip'
if (is_success ( getstore $url, $zipfile ) {
my $zip = Archive::Zip->new($zipfile);
foreach my $z ($zip->members) {
$zip->extractMember;
}
}
just another cpan module author
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.