<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>argius</author_name>
  <author_url>https://blog.hatena.ne.jp/argius/</author_url>
  <blog_title>argius note</blog_title>
  <blog_url>https://argius.hatenablog.jp/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>Javaなら Collection.contains(Object) 、Rubyなら ary.include?(val) を使うと思いますが、Perlの場合はどうやるのが一般的なのでしたっけ？スクリプトを書いていて、そういう関数があるのかどうか思い出せず、時間がないので defined関数 を使ってやってしまいました。 注(2009.05.18): この場合は、definedではなく、exists関数を使うべき。 my %hash = map { $_, 1_ } (&quot;APPLE&quot;, &quot;BEER&quot;, &quot;CANDY&quot;); print &quot;BEER!\n&quot; if defined $hash{&quot;BEE…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fargius.hatenablog.jp%2Fentry%2F20080319%2F1205943974&quot; title=&quot;ある要素が配列に含まれているかを調べる一般的な方法は？ - argius note&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>2008-03-19 01:26:14</published>
  <title>ある要素が配列に含まれているかを調べる一般的な方法は？</title>
  <type>rich</type>
  <url>https://argius.hatenablog.jp/entry/20080319/1205943974</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
