<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hirose31</author_name>
  <author_url>https://blog.hatena.ne.jp/hirose31/</author_url>
  <blog_title>（ひ）メモ</blog_title>
  <blog_url>https://hirose31.hatenablog.jp/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>リストコンテキストかどうかは組み込み関数の wantarray で調べられますが、コンテキストによってスカラ(文字列)を返したり、ハッシュのリファレンスを返すには use Want すればいいと教えてもらったのでメモ。 my $server = OrenoServer-&gt;new(...); # want scalar say $server-&gt;archetyp; say &quot;this server is &quot;, $server-&gt;archetyp eq &quot;core&quot; ? &quot;&quot; : &quot;not &quot;, &quot;core&quot;; my $h = $server-&gt;archetyp; print Dumper $h;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhirose31.hatenablog.jp%2Fentry%2F20090511%2F1242037025&quot; title=&quot; コンテキストによって返す値を変える関数 - use Want 編 - （ひ）メモ&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-05-11 19:17:05</published>
  <title> コンテキストによって返す値を変える関数 - use Want 編</title>
  <type>rich</type>
  <url>https://hirose31.hatenablog.jp/entry/20090511/1242037025</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
