<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sugyan</author_name>
  <author_url>https://blog.hatena.ne.jp/sugyan/</author_url>
  <blog_title>すぎゃーんメモ</blog_title>
  <blog_url>https://memo.sugyan.com/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>知らなかった。。 my @arr = ( { key =&gt; 1 }, { key =&gt; 2 }, { key =&gt; undef }, { key =&gt; 3 } ); のようなデータに対し、全要素の&quot;key&quot;に対応する値を取り出したmapを得ると print &quot;$_\n&quot; for map { $_-&gt;{key} } @arr; 1 2 Use of uninitialized value $_ in concatenation (.) or string ... 3となる。mapの結果はundefも含む4要素の配列ということになる。 ここからundefのやつを除きたい、というとき、今までずっと …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20101006%2F1286371100&quot; title=&quot;mapした結果がundefのものを除いた配列を得る - すぎゃーんメモ&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-06 22:18:20</published>
  <title>mapした結果がundefのものを除いた配列を得る</title>
  <type>rich</type>
  <url>https://memo.sugyan.com/entry/20101006/1286371100</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
