<?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>PerlIO_unread is awesomeの補足PerlIO_unread()はよく考えるとかなり異様な挙動をする。何バイトまでなら安全に戻せるのか，あるいは戻した文字列はどこへ行くのか，などの疑問が起きて当然だ。結論からいえば，これらは:pendingという内部レイヤーを用いて実装されているため，何バイトでも安全に読み戻せる。まったく読んでいない文字列を戻すことすらできる。 #!perl -w use feature 'say'; use strict; use IO::Handle::unread; # available via CPAN *STDIN-&gt;unread(&quot;Hello…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20090921%2F1253493907&quot; title=&quot;The :pending layer (used in PerlIO_unread) - 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>2009-09-21 09:45:07</published>
  <title>The :pending layer (used in PerlIO_unread)</title>
  <type>rich</type>
  <url>https://gfx.hatenadiary.org/entry/20090921/1253493907</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
