<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>palmo</author_name>
  <author_url>https://blog.hatena.ne.jp/palmo/</author_url>
  <blog_title>ぱるも日記</blog_title>
  <blog_url>https://palmo.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>昨日勉強したif文は「もしも＊＊なら……する」という制御文（条件分岐）でしたが、while文は「＊＊の間……を繰り返す」という制御文（ループ）になります。until文はunless文に対応していて、「＊＊になるまで……を繰り返す」です。 if と unless、while と until はそれぞれ条件を否定するともう一方と同じ意味になりますね。&amp;&amp; や || を使った複雑な条件の論理的否定はド・モルガンの法則でしたか。 とりあえず、使ってみます。 # looptest.pl my $n = 1; while ($n &lt; 1000) { $n *= 2; } print &quot;$n\n&quot;; $n …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpalmo.hatenadiary.org%2Fentry%2F20060502%2Fp1&quot; title=&quot;制御構文(2) while, until - ぱるも日記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/p/palmo/20060503/20060503004642.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-05-02 00:00:00</published>
  <title>制御構文(2) while, until</title>
  <type>rich</type>
  <url>https://palmo.hatenadiary.org/entry/20060502/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
