<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gfx</author_name>
  <author_url>https://blog.hatena.ne.jp/gfx/</author_url>
  <blog_title>Islands in the byte stream (legacy)</blog_title>
  <blog_url>https://gfx.hatenadiary.org/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>Perlのzlibインターフェイスは沢山あってよく分からないが、単純に圧縮/解凍をするだけならCompress::Raw::Zlibがシンプルで良さそうだ。 これでzcat(1)を実装すると以下のようになる。 #!perl -w use strict; use Compress::Raw::Zlib; my $z = Compress::Raw::Zlib::Inflate-&gt;new( -WindowBits =&gt; WANT_GZIP, ); foreach my $file(@ARGV) { open my $fh, '&lt;', $file or die &quot;Cannot open $file:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20101024%2F1287908407&quot; title=&quot;Simple zcat(1) in Perl with Compress::Raw::Zlib - Islands in the byte stream (legacy)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-10-24 17:20:07</published>
  <title>Simple zcat(1) in Perl with Compress::Raw::Zlib</title>
  <type>rich</type>
  <url>https://gfx.hatenadiary.org/entry/20101024/1287908407</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
