<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cooldaemon</author_name>
  <author_url>https://blog.hatena.ne.jp/cooldaemon/</author_url>
  <blog_title>cooldaemonの備忘録</blog_title>
  <blog_url>https://cooldaemon.hatenadiary.org/</blog_url>
  <categories>
    <anon>Perl</anon>
    <anon>Memoize</anon>
  </categories>
  <description>Perl Best Practices ネタ。ソートを行う際、同じ引数を与えた場合、結果が同じとなる関数を利用する場合・・・ my @numbers = ( 1 .. 100 ); my @sorted_numbers = sort { calc($a) &lt;=&gt; calc($b) } @numbers; sub calc [ # いろいろ時間の掛かる処理 }sort ブロック内の calc は何度も呼ばれるので、下記のように値をキャッシングした方が良い。 my @numbers = ( 1 .. 100 ); my @sorted_numbers = map { $_-&gt;[0] } sort …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcooldaemon.hatenadiary.org%2Fentry%2F20060313%2F1142215135&quot; title=&quot;使い方 - cooldaemonの備忘録&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>2006-03-13 10:58:55</published>
  <title>使い方</title>
  <type>rich</type>
  <url>https://cooldaemon.hatenadiary.org/entry/20060313/1142215135</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
