<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rdera</author_name>
  <author_url>https://blog.hatena.ne.jp/rdera/</author_url>
  <blog_title>rderaログ</blog_title>
  <blog_url>https://rdera.hatenadiary.org/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>perlでは変数が数値としても、文字列としても振る舞うことは文字列として比較する - rderaログで述べたが、それに関連してperlでは何を真と決め、何を偽と決めているかについて学びます。perlでは数値の場合、0以外を真、0を偽としています。 つまり、 if (100) { #実行される } if (1) { #実行される } if (0) { #実行されない } という感じになります。 文字列の場合、空文字列(&quot;&quot;)は偽、それ以外は真としています。 ということで、 if (&quot;&quot;) { #実行されない } if (&quot;a&quot;) { #実行される } となります。 応用例 100が真で、&quot;&quot;が偽…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frdera.hatenadiary.org%2Fentry%2F20080822%2Fp10&quot; title=&quot;真と偽 - rderaログ&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-08-22 00:00:01</published>
  <title>真と偽</title>
  <type>rich</type>
  <url>https://rdera.hatenadiary.org/entry/20080822/p10</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
