<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Ellipsis: Processing gzipped files with Perl IO:Uncompress </title>
    <link>http://typo.pburkholder.com/articles/2008/01/02/processing-gzipped-files-with-perl-io-uncompress</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>...</description>
    <item>
      <title>Processing gzipped files with Perl IO:Uncompress </title>
      <description>&lt;p&gt;Idiom of the day:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;

foreach $host ( "foo", "bar", "dev", "teset") {
  foreach $site ( "public", "private" ) {
   foreach $date ( "20071223", "20071224", "20071225", "20071226", "20071227", "20071228", "20071229", "20071230", "20071231", "20080101" ) {

     $input="/web/$host/$site/logs/access-$date.gz";
     next unless -f $input;
     my $z = new IO::Uncompress::Gunzip $input or die "IO::Uncompress::Gunzip failed: $GunzipError\n";

        while (&amp;lt;$z&amp;gt;) {
          next unless / 200 /;
          @F=split;
          ($URI, $therest) = split(/\?/, $F[6], 2);
          # perl regex operation on the URI

        }
   }
  }
}
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 02 Jan 2008 11:23:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:2922e3bd-d48a-4586-acd8-b13cb2108b37</guid>
      <author>Peter Burkholder</author>
      <link>http://typo.pburkholder.com/articles/2008/01/02/processing-gzipped-files-with-perl-io-uncompress</link>
      <category>System Administration</category>
      <category>perl</category>
    </item>
    <item>
      <title>"Processing gzipped files with Perl IO:Uncompress " by Gamer</title>
      <description>looking good</description>
      <pubDate>Wed, 05 Mar 2008 12:33:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:779ef6c4-e136-4398-a787-8585a2baa3bd</guid>
      <link>http://typo.pburkholder.com/articles/2008/01/02/processing-gzipped-files-with-perl-io-uncompress#comment-3996</link>
    </item>
    <item>
      <title>"Processing gzipped files with Perl IO:Uncompress " by Gamer</title>
      <description>looking good</description>
      <pubDate>Wed, 05 Mar 2008 12:32:56 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:c87317ee-5f2e-401b-b49d-75a18ee781ad</guid>
      <link>http://typo.pburkholder.com/articles/2008/01/02/processing-gzipped-files-with-perl-io-uncompress#comment-3995</link>
    </item>
  </channel>
</rss>
