<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aql</author_name>
  <author_url>https://blog.hatena.ne.jp/aql/</author_url>
  <blog_title>あくる日</blog_title>
  <blog_url>https://aql.hatenablog.com/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>ランダムジャンプのほうで、ちょっとミスというかなんというか。 $array-&gt;[ int rand $#{$array} ]-&gt;{uri}こうすると、ひとまずだいたい動くんだが、よく考えてみるとちょっとだけおかしい。分解して考ると…intは引数の小数点以下を切り捨てる、randは０以上引数未満で乱数を返す、$#{$array}は配列の最後尾のインデックスを返す…そう、リストの最後にはジャンプしないのだ。リストの最後まできちんとジャンプするためには、次のようにすれば良い。 $array-&gt;[ int rand scalar @$array ]-&gt;{uri}配列はスカラーで評価すれば中の要素数を返…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faql.hatenablog.com%2Fentry%2F20050603%2Fp1&quot; title=&quot; 前回のミス - あくる日&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>2005-06-03 00:00:00</published>
  <title> 前回のミス</title>
  <type>rich</type>
  <url>https://aql.hatenablog.com/entry/20050603/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
